summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-31 06:34:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-31 06:34:10 +0000
commit314e43adfc43bf906d8b37453f434b210d908a37 (patch)
tree6a277eed8c128f9212b0ef8316750e697701059d /eval.c
parent0f66a9142fc880c0483d62ba0e1632c37fd27764 (diff)
downloadruby-314e43adfc43bf906d8b37453f434b210d908a37.tar.gz
ruby-314e43adfc43bf906d8b37453f434b210d908a37.tar.xz
ruby-314e43adfc43bf906d8b37453f434b210d908a37.zip
* ruby.h: use ifdef (or defined) for macro constants that may or
may not be defined to shut up gcc's -Wundef warnings. [ruby-core:08447] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 60d2b46a3..d00891aa1 100644
--- a/eval.c
+++ b/eval.c
@@ -10296,7 +10296,7 @@ rb_thread_switch(n)
NORETURN(static void rb_thread_restore_context _((rb_thread_t,int)));
-# if _MSC_VER >= 1300
+# if defined(_MSC_VER) && _MSC_VER >= 1300
__declspec(noinline) static void stack_extend(rb_thread_t, int);
# endif
static void