diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-06 13:21:42 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-06 13:21:42 +0000 |
commit | 8db2aa121631435b68160d9d7836a77415dcb0ea (patch) | |
tree | 62f4a5d6ae42d44d2c2f29d1167361f7058bf4b5 /cont.c | |
parent | bcd0bcc3904db4755ac6cf2b14020872ca328cc7 (diff) | |
download | ruby-8db2aa121631435b68160d9d7836a77415dcb0ea.tar.gz |
* 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
Diffstat (limited to 'cont.c')
-rw-r--r-- | cont.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |