summaryrefslogtreecommitdiff
path: root/include/ruby/missing.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-11 14:00:35 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-11 14:00:35 +0000
commitb04fa7b8e1877c871f0db8f4e6753712deeb6a29 (patch)
treecbc0a1870aa79229e1fdc5c84aafff0e2f95f6fc /include/ruby/missing.h
parent48c5afeba09c3d3098bff1176b79a7b169469dfd (diff)
* include/ruby/missing.h (isnan): fix compilation error on OpenBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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
/*