summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/bigdecimal/bigdecimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 1354242b0bb..c9afdf3e046 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -30,7 +30,7 @@
#include <ieeefp.h>
#endif
-#if !defined(HAVE_ISFINITE) && defined(HAVE_FINITE)
+#if !defined(HAVE_ISFINITE) && defined(HAVE_FINITE) && !defined(isfinite)
# define isfinite(x) finite(x)
#endif