Skip to content

Instantly share code, notes, and snippets.

@gjherbiet
Created January 18, 2011 10:34
Show Gist options
  • Save gjherbiet/784271 to your computer and use it in GitHub Desktop.
Save gjherbiet/784271 to your computer and use it in GitHub Desktop.
sumo 0.12.2 homebrew patch
diff --git a/src/router/RORouteDef_Alternatives.cpp b/src/router/RORouteDef_Alternatives.cpp
index 88e7d96..d640562 100644
--- a/src/router/RORouteDef_Alternatives.cpp
+++ b/src/router/RORouteDef_Alternatives.cpp
@@ -54,6 +54,9 @@
#ifdef _MSC_VER
#define ISNAN _isnan
#else
+inline bool isnan(double x) {
+ return x != x;
+}
#define ISNAN isnan
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment