1 #ifndef __ISINF_H__
2 #define __ISINF_H__
4 /*
5 * Fix for missing std::isnormal with SOLARIS8/GCC3.2
6 */
8 #if defined (SOLARIS)
10 #include <ieeefp.h>
11 #define isinf(x) ((fpclass(x) == FP_NINF) || (fpclass(x) == FP_PINF))
13 #elif defined(__APPLE__) && __GNUC__ == 3
14 #define isinf(x) __isinf(x)
15 #endif
17 #endif /* __ISINF_H__ */