From 8db2aa121631435b68160d9d7836a77415dcb0ea Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 6 May 2010 13:21:42 +0000 Subject: [PATCH] * 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ cont.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7fe28bd6d8..ab24b731ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Thu May 6 22:19:38 2010 NAKAMURA Usaku + + * 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 * test/openssl/test_ec.rb: added test_dsa_sign_asn1_FIPS186_3. dgst is diff --git a/cont.c b/cont.c index 57b960a99e..c164a3554b 100644 --- a/cont.c +++ b/cont.c @@ -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