summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-06 13:21:42 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-06 13:21:42 +0000
commit8db2aa121631435b68160d9d7836a77415dcb0ea (patch)
tree62f4a5d6ae42d44d2c2f29d1167361f7058bf4b5 /cont.c
parentbcd0bcc3904db4755ac6cf2b14020872ca328cc7 (diff)
downloadruby-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.c2
1 files changed, 1 insertions, 1 deletions
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