summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-07 12:03:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-07 12:03:58 +0000
commit4549879579fb2eac72bd7e0be2330ce6b7551ff2 (patch)
treed849b16f9bde0428b3cdfed4996b05d59212666b /cont.c
parent1956ca5d4b52e5174f3c541216ab1ee7141efc50 (diff)
configure.in: move FIBER_USE_NATIVE conditions
* configure.in, win32/Makefile.sub (FIBER_USE_NATIVE): move conditions from cont.c git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cont.c b/cont.c
index 40aa273..75fa3d5 100644
--- a/cont.c
+++ b/cont.c
@@ -15,9 +15,6 @@
#include "gc.h"
#include "eval_intern.h"
-#if ((defined(_WIN32) && _WIN32_WINNT >= 0x0400) || (defined(HAVE_GETCONTEXT) && defined(HAVE_SETCONTEXT))) && !defined(__NetBSD__) && !defined(__sun) && !defined(__ia64) && !defined(FIBER_USE_NATIVE)
-#define FIBER_USE_NATIVE 1
-
/* FIBER_USE_NATIVE enables Fiber performance improvement using system
* dependent method such as make/setcontext on POSIX system or
* CreateFiber() API on Windows.
@@ -34,7 +31,7 @@
* are represented by stack pointer (higher bits of stack pointer).
* TODO: check such constraint on configure.
*/
-#elif !defined(FIBER_USE_NATIVE)
+#if !defined(FIBER_USE_NATIVE)
#define FIBER_USE_NATIVE 0
#endif