summaryrefslogtreecommitdiff
path: root/win32
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
commitd2bd7d7b9823cab4bffb7e43a66361f93fcfb461 (patch)
treef2a5a240a058f517316f36319043d14e3e3db9d3 /win32
parent78c81718d2ee1e7f9b1b573b3b4eb2eab1fb0f94 (diff)
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 'win32')
-rw-r--r--win32/Makefile.sub3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 73b26b3073..a853399d00 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -736,6 +736,9 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
#define HAVE_FLOCK 1
#define HAVE_ISNAN 1
#define HAVE_FINITE 1
+!if $(RT_VAR) >= 120
+#define HAVE_NAN 1
+!endif
#define HAVE_HYPOT 1
#define HAVE_FMOD 1
#define HAVE_FREXP 1