summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Traversaro <silvio@traversaro.it>2020-11-10 23:02:43 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-09-20 12:20:27 +0900
commit26a3de0dfde2399fdda42b41602906cae622d3a5 (patch)
tree882eaec4be52603fb25fc1396d5345d73327846c
parent2230ac4a28a727bbc621fb085d2d5ed0b6771ca5 (diff)
Define HAVE_ISINF for Visual Studio >= 2013
isinf is defined in Visual Studio since version 2013.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3758
-rw-r--r--win32/Makefile.sub3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index cd519eb8ed..2598c798d1 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -863,6 +863,9 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
#define HAVE_STRCHR 1
#define HAVE_STRSTR 1
#define HAVE_FLOCK 1
+!if $(MSC_VER) >= 1800
+#define HAVE_ISINF 1
+!endif
#define HAVE_ISNAN 1
#define HAVE_FINITE 1
!if $(RT_VER) >= 120