1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

win32.c: fix infinite recursion

* win32/win32.c: include "missing/nextafter.c" and address
  finite() and isnan() macros, to get rid of infinite recursion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-05-18 13:20:39 +00:00
parent 3d6ecd45c7
commit 3360dfd294
2 changed files with 5 additions and 1 deletions

View file

@ -237,7 +237,7 @@ LIBS = $(LIBS) imagehlp.lib shlwapi.lib $(EXTLIBS)
!if !defined(MISSING)
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 nextafter.obj finite.obj isnan.obj
MISSING = $(MISSING) acosh.obj cbrt.obj erf.obj tgamma.obj
!endif
!endif
DLNOBJ = dln.obj

View file

@ -7214,3 +7214,7 @@ rb_w32_pow(double x, double y)
return r;
}
#endif
#if RUBY_MSVCRT_VERSION < 120
#include "missing/nextafter.c"
#endif