From d7df70c08f25f4f21d0c5d7690657faae92026b0 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 18 May 2014 05:46:36 +0000 Subject: [PATCH] Makefile.sub: fix nextafter * win32/Makefile.sub (MISSING, CONFIG_H): msvcr120.dll provides nextafter() as well as other mathematic functions. finite() and isnan() used in missing/nextafter.c are not by older runtimes. [Feature #9834] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/Makefile.sub | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 0aaece7d4f..85dd1ef394 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -235,9 +235,9 @@ LIBS = $(LIBS) iphlpapi.lib LIBS = $(LIBS) imagehlp.lib shlwapi.lib $(EXTLIBS) !endif !if !defined(MISSING) -MISSING = crypt.obj ffs.obj langinfo.obj lgamma_r.obj nextafter.obj strlcat.obj strlcpy.obj win32/win32.obj win32/file.obj setproctitle.obj +MISSING = crypt.obj ffs.obj langinfo.obj lgamma_r.obj strlcat.obj strlcpy.obj win32/win32.obj win32/file.obj setproctitle.obj !if $(RT_VER) < 120 -MISSING = $(MISSING) acosh.obj cbrt.obj erf.obj tgamma.obj +MISSING = $(MISSING) acosh.obj cbrt.obj erf.obj tgamma.obj nextafter.obj finite.obj isnan.obj !endif !endif DLNOBJ = dln.obj @@ -651,6 +651,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub #define HAVE_ERFC 1 #define HAVE_ROUND 1 #define HAVE_TGAMMA 1 +#define HAVE_NEXTAFTER 1 !endif #define HAVE_ALLOCA 1 #define HAVE_DUP2 1