Selaa lähdekoodia

OSX has a isnan that conflicts with this .. ??

Roger Hughston 20 vuotta sitten
vanhempi
sitoutus
e4a267db75
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      dtool/src/dtoolbase/cmath.I

+ 2 - 0
dtool/src/dtoolbase/cmath.I

@@ -17,11 +17,13 @@
 ////////////////////////////////////////////////////////////////////
 
 #ifdef __APPLE__
+#ifndef isnan
 #define isnan(x) \
   ((sizeof(x) == sizeof(double)) ? \
     __isnand(x) : \
    (sizeof(x) == sizeof(float)) ? __isnanf(x) : __isnan(x))
 #endif
+#endif
 
 #ifdef __INTEL_COMPILER
 // see float.h