Code

GSoC C++-ificiation merge and cleanup.
[inkscape.git] / src / isinf.h
index 5893393f0026c8962584f523394ea689529b1fe0..7799d2876cdccbeaf824354b216c613eb9ad724c 100644 (file)
@@ -5,11 +5,13 @@
  * Fix for missing std::isnormal with SOLARIS8/GCC3.2
  */
  
-#if defined (SOLARIS_2_8) && __GNUC__ == 3 && __GNUC_MINOR__ == 2
+#if defined (SOLARIS)
 
        #include <ieeefp.h>
        #define isinf(x) ((fpclass(x) == FP_NINF) || (fpclass(x) == FP_PINF))
        
+#elif defined(__APPLE__) && __GNUC__ == 3
+#define isinf(x) __isinf(x)
 #endif
 
 #endif /* __ISINF_H__ */