]> git.mxchange.org Git - simgear.git/commitdiff
MacOSX fix that never got applied before.
authorehofman <ehofman>
Fri, 21 May 2004 16:27:16 +0000 (16:27 +0000)
committerehofman <ehofman>
Fri, 21 May 2004 16:27:16 +0000 (16:27 +0000)
simgear/scene/sky/cloud.cxx

index e5b475ae47ada3447fb2fb30187d24734266b5ab..963c18b3b99b8c8a94c6d43749afb6f37cc1daca 100644 (file)
 // #include <stdio.h>
 #include <math.h>
 
-// #if defined (__APPLE__) 
-// // any C++ header file undefines isinf and isnan
-// // so this should be included before <iostream>
-// inline int (isnan)(double r) { return isnan(r); } 
-// #endif
+#if defined (__APPLE__) 
+// any C++ header file undefines isinf and isnan
+// so this should be included before <iostream>
+inline int (isinf)(double r) { return isinf(r); }
+inline int (isnan)(double r) { return isnan(r); } 
+#endif
 
 #if defined(__MINGW32__)
 #define isnan(x) _isnan(x)