ruby-changes:31319
From: nobu <ko1@a...>
Date: Wed, 23 Oct 2013 22:51:12 +0900 (JST)
Subject: [ruby-changes:31319] nobu:r43398 (trunk): Makefile.sub: C99 mathematics functions
nobu 2013-10-23 22:51:05 +0900 (Wed, 23 Oct 2013) New Revision: 43398 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43398 Log: Makefile.sub: C99 mathematics functions * win32/Makefile.sub (config.h): VC 2013 supports C99 mathematics functions. [ruby-core:57981] [Bug #9044] Modified files: trunk/ChangeLog trunk/win32/Makefile.sub Index: ChangeLog =================================================================== --- ChangeLog (revision 43397) +++ ChangeLog (revision 43398) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Oct 23 22:51:03 2013 Nobuyoshi Nakada <nobu@r...> + + * win32/Makefile.sub (config.h): VC 2013 supports C99 mathematics + functions. [ruby-core:57981] [Bug #9044] + Wed Oct 23 19:13:18 2013 Koichi Sasada <ko1@a...> * gc.c: move increment from heap to heap_pages. Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 43397) +++ win32/Makefile.sub (revision 43398) @@ -235,7 +235,10 @@ LIBS = $(LIBS) iphlpapi.lib https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L235 LIBS = $(LIBS) imagehlp.lib shlwapi.lib $(EXTLIBS) !endif !if !defined(MISSING) -MISSING = acosh.obj cbrt.obj crypt.obj erf.obj ffs.obj langinfo.obj lgamma_r.obj strlcat.obj strlcpy.obj tgamma.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 +!endif !endif DLNOBJ = dln.obj @@ -633,6 +636,17 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/ https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L636 #define GETGROUPS_T int #define RETSIGTYPE void #define TYPEOF_TIMEVAL_TV_SEC long +!if $(RT_VER) >= 1200 +#define HAVE_ACOSH 1 +#define HAVE_ASINH 1 +#define HAVE_ATANH 1 +#define HAVE_CBRT 1 +#define HAVE_LOG2 1 +#define HAVE_ERF 1 +#define HAVE_ERFC 1 +#define HAVE_ROUND 1 +#define HAVE_TGAMMA 1 +!endif #define HAVE_ALLOCA 1 #define HAVE_DUP2 1 #define HAVE_MEMCMP 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/