summaryrefslogtreecommitdiff
path: root/include/ruby/missing.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/missing.h')
-rw-r--r--include/ruby/missing.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index cde1baa5dd9..5b147de6db4 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -112,8 +112,10 @@ RUBY_EXTERN int isinf(double);
# endif
#endif
-#ifndef HAVE_ISNAN
+#ifndef isnan
+# ifndef HAVE_ISNAN
RUBY_EXTERN int isnan(double);
+# endif
#endif
/*