ruby-changes:31328
From: nobu <ko1@a...>
Date: Thu, 24 Oct 2013 01:34:26 +0900 (JST)
Subject: [ruby-changes:31328] nobu:r43407 (trunk): Makefile.sub: C99 mathematics functions
nobu 2013-10-24 01:34:17 +0900 (Thu, 24 Oct 2013) New Revision: 43407 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43407 Log: Makefile.sub: C99 mathematics functions * win32/Makefile.sub (config.h): fix version number of runtime library. log2 needs to be defined, not only HAVE_LOG2. [ruby-core:57992] [Bug #9044] Modified files: trunk/win32/Makefile.sub Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 43406) +++ win32/Makefile.sub (revision 43407) @@ -636,12 +636,13 @@ $(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 +!if $(RT_VER) >= 120 #define HAVE_ACOSH 1 #define HAVE_ASINH 1 #define HAVE_ATANH 1 #define HAVE_CBRT 1 #define HAVE_LOG2 1 +#define log2(x) log2(x) #define HAVE_ERF 1 #define HAVE_ERFC 1 #define HAVE_ROUND 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/