aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gc.c b/gc.c
index a364b33268..871f60b85e 100644
--- a/gc.c
+++ b/gc.c
@@ -407,19 +407,15 @@ VALUE *rb_gc_stack_start = 0;
#if defined(DJGPP) || defined(_WIN32_WCE)
static unsigned int STACK_LEVEL_MAX = 65535;
-#else
-#ifdef __human68k__
-extern unsigned int _stacksize;
+#elif defined(__human68k__)
+unsigned int _stacksize = 262144;
# define STACK_LEVEL_MAX (_stacksize - 4096)
# undef HAVE_GETRLIMIT
-#else
-#ifdef HAVE_GETRLIMIT
+#elif defined(HAVE_GETRLIMIT)
static unsigned int STACK_LEVEL_MAX = 655300;
#else
# define STACK_LEVEL_MAX 655300
#endif
-#endif
-#endif
#ifdef C_ALLOCA
# define SET_STACK_END VALUE stack_end; alloca(0);