summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/isinf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/isinf.h b/src/isinf.h
index 5893393f0..92c885701 100644
--- a/src/isinf.h
+++ b/src/isinf.h
@@ -10,6 +10,8 @@
#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__ */