[前][次][番号順一覧][スレッド一覧]

ruby-changes:31569

From: nagachika <ko1@a...>
Date: Mon, 11 Nov 2013 22:30:17 +0900 (JST)
Subject: [ruby-changes:31569] nagachika:r43648 (ruby_2_0_0): merge revision(s) 43398, 43407, 43408, 43417: [Backport #9044]

nagachika	2013-11-11 22:29:58 +0900 (Mon, 11 Nov 2013)

  New Revision: 43648

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43648

  Log:
    merge revision(s) 43398,43407,43408,43417: [Backport #9044]
    
    * win32/Makefile.sub (config.h): VC 2013 supports C99 mathematics
      functions.  [ruby-core:57981] [Bug #9044]
    
    * include/ruby/win32.h (rb_infinity_float): suppress overflow in
      constant arithmetic warnings.  [ruby-core:57981] [Bug #9044]

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/include/ruby/win32.h
    branches/ruby_2_0_0/version.h
    branches/ruby_2_0_0/win32/Makefile.sub
Index: ruby_2_0_0/include/ruby/win32.h
===================================================================
--- ruby_2_0_0/include/ruby/win32.h	(revision 43647)
+++ ruby_2_0_0/include/ruby/win32.h	(revision 43648)
@@ -308,6 +308,20 @@ extern FILE *rb_w32_fsopen(const char *, https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/include/ruby/win32.h#L308
 #endif
 
 #include <float.h>
+
+#if defined _MSC_VER && _MSC_VER >= 1800 && defined INFINITY
+#pragma warning(push)
+#pragma warning(disable:4756)
+static inline float
+rb_infinity_float(void)
+{
+    return INFINITY;
+}
+#pragma warning(pop)
+#undef INFINITY
+#define INFINITY rb_infinity_float()
+#endif
+
 #if !defined __MINGW32__ || defined __NO_ISOCEXT
 #ifndef isnan
 #define isnan(x) _isnan(x)
Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 43647)
+++ ruby_2_0_0/ChangeLog	(revision 43648)
@@ -1,3 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Mon Nov 11 22:14:37 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* include/ruby/win32.h (rb_infinity_float): suppress overflow in
+	  constant arithmetic warnings.  [ruby-core:57981] [Bug #9044]
+
+Mon Nov 11 22:14:37 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* win32/Makefile.sub (config.h): VC 2013 supports C99 mathematics
+	  functions.  [ruby-core:57981] [Bug #9044]
+
 Thu Oct 31 22:28:04 2013  Martin Bosslet  <Martin.Bosslet@g...>
 
 	* test/openssl/test_pkey_ec.rb: Skip tests for "Oakley" curves as
Index: ruby_2_0_0/win32/Makefile.sub
===================================================================
--- ruby_2_0_0/win32/Makefile.sub	(revision 43647)
+++ ruby_2_0_0/win32/Makefile.sub	(revision 43648)
@@ -230,7 +230,10 @@ EXTSOLIBS = https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/win32/Makefile.sub#L230
 LIBS = oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib 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.obj
+!endif
 !endif
 DLNOBJ = dln.obj
 
@@ -617,6 +620,18 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/win32/Makefile.sub#L620
 #define GETGROUPS_T int
 #define RETSIGTYPE void
 #define TYPEOF_TIMEVAL_TV_SEC long
+!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
+#define HAVE_TGAMMA 1
+!endif
 #define HAVE_ALLOCA 1
 #define HAVE_DUP2 1
 #define HAVE_MEMCMP 1
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 43647)
+++ ruby_2_0_0/version.h	(revision 43648)
@@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #define RUBY_VERSION "2.0.0"
-#define RUBY_RELEASE_DATE "2013-10-31"
-#define RUBY_PATCHLEVEL 343
+#define RUBY_RELEASE_DATE "2013-11-11"
+#define RUBY_PATCHLEVEL 344
 
 #define RUBY_RELEASE_YEAR 2013
-#define RUBY_RELEASE_MONTH 10
-#define RUBY_RELEASE_DAY 31
+#define RUBY_RELEASE_MONTH 11
+#define RUBY_RELEASE_DAY 11
 
 #include "ruby/version.h"
 

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r43398,43407-43408,43417


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]