aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-26 16:38:38 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-26 16:38:38 +0000
commit29e9555fdc7594bff976bf539d8668a99b9d69d6 (patch)
treef2a5a240a058f517316f36319043d14e3e3db9d3 /include
parent117bdc6758311e1c3c525a7ef6c6b48c57897e1d (diff)
downloadruby-29e9555fdc7594bff976bf539d8668a99b9d69d6.tar.gz
need to declare the prototype of nan() if missing
* include/ruby/missing.h (nan): need to declare the prototype of nan() if missing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/missing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index cda0aea164..68a90aeb96 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -185,6 +185,10 @@ RUBY_EXTERN int isnan(double);
# endif
#endif
+#ifndef HAVE_NAN
+RUBY_EXTERN double nan(const char *);
+#endif
+
#ifndef HAVE_NEXTAFTER
RUBY_EXTERN double nextafter(double x, double y);
#endif