]> git.mxchange.org Git - simgear.git/commitdiff
MacOS X fix
authorehofman <ehofman>
Sat, 31 Oct 2009 08:41:07 +0000 (08:41 +0000)
committerTim Moore <timoore@redhat.com>
Sat, 31 Oct 2009 21:54:46 +0000 (22:54 +0100)
simgear/compiler.h

index cfa91f86441df92aa7cdcc9bd3f61e81e1ddc3ac..5f02adb27bfeccab9c550d19e7094585e1acc624 100644 (file)
@@ -138,8 +138,8 @@ inline int (isnan)(double r) { return !(r <= 0 || r >= 0); }
     // any C++ header file undefines isinf and isnan
     // so this should be included before <iostream>
     // the functions are STILL in libm (libSystem on mac os x)
     // any C++ header file undefines isinf and isnan
     // so this should be included before <iostream>
     // the functions are STILL in libm (libSystem on mac os x)
-extern "C" int isnan (double);
-extern "C" int isinf (double);
+extern "C" int (isnan)(double);
+extern "C" int (isinf)(double);
 #    endif
 #  else
 inline int (isnan)(double r) { return !(r <= 0 || r >= 0); }
 #    endif
 #  else
 inline int (isnan)(double r) { return !(r <= 0 || r >= 0); }