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

ruby-changes:15722

From: usa <ko1@a...>
Date: Thu, 6 May 2010 22:22:58 +0900 (JST)
Subject: [ruby-changes:15722] Ruby:r27646 (trunk): * cont.c: define FIBER_USE_NATIVE only when _WIN32_WINNT >= 0x0400

usa	2010-05-06 22:21:42 +0900 (Thu, 06 May 2010)

  New Revision: 27646

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

  Log:
    * cont.c: define FIBER_USE_NATIVE only when _WIN32_WINNT >= 0x0400
      on Windows because Fiber APIs are supported only such building
      (and running) environments.
      [ruby-dev:41192]

  Modified files:
    trunk/ChangeLog
    trunk/cont.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27645)
+++ ChangeLog	(revision 27646)
@@ -1,3 +1,10 @@
+Thu May  6 22:19:38 2010  NAKAMURA Usaku  <usa@r...>
+
+	* cont.c: define FIBER_USE_NATIVE only when _WIN32_WINNT >= 0x0400
+	  on Windows because Fiber APIs are supported only such building
+	  (and running) environments.
+	  [ruby-dev:41192]
+
 Thu May  6 19:13:43 2010  NAKAMURA, Hiroshi  <nahi@r...>
 
 	* test/openssl/test_ec.rb: added test_dsa_sign_asn1_FIPS186_3. dgst is
Index: cont.c
===================================================================
--- cont.c	(revision 27645)
+++ cont.c	(revision 27646)
@@ -14,7 +14,7 @@
 #include "gc.h"
 #include "eval_intern.h"
 
-#if (defined(_WIN32) || defined(HAVE_SETCONTEXT)) && !defined(__NetBSD__) && !defined(FIBER_USE_NATIVE)
+#if ((defined(_WIN32) && _WIN32_WINNT >= 0x0400) || defined(HAVE_SETCONTEXT)) && !defined(__NetBSD__) && !defined(FIBER_USE_NATIVE)
 #define FIBER_USE_NATIVE 1
 
 /* FIBER_USE_NATIVE enables Fiber performance improvement using system

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

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