]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/soundmgr_openal.cxx
MacOS-X fixes.
[simgear.git] / simgear / sound / soundmgr_openal.cxx
index 9b88e3d001ad6997bc329b94bbcbfd760a241613..7d97d95cc8e7a9ac2a07912e99b45542439fcf32 100644 (file)
@@ -37,8 +37,7 @@
 #  ifdef __GNUC__
 #    if ( __GNUC__ >= 3 ) && ( __GNUC_MINOR__ >= 3 )
 //  #        include <math.h>
-extern "C" int isnan (double);
-extern "C" int isinf (double);
+inline int (isnan)(double r) { return !(r <= 0 || r >= 0); }
 #    else
     // any C++ header file undefines isinf and isnan
     // so this should be included before <iostream>