summaryrefslogtreecommitdiffstats
path: root/ext/dl
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-04 01:45:07 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-04 01:45:07 +0000
commit9bb3078f1d44ebf0a0c745cac04e9a8a6a4267f5 (patch)
tree7b839c1c53265fa450e1f0d408c9e2d01c55d079 /ext/dl
parentd23a244653294a579cbb8af0c1ca5e35baa8e1c8 (diff)
downloadruby-9bb3078f1d44ebf0a0c745cac04e9a8a6a4267f5.tar.gz
ruby-9bb3078f1d44ebf0a0c745cac04e9a8a6a4267f5.tar.xz
ruby-9bb3078f1d44ebf0a0c745cac04e9a8a6a4267f5.zip
* ext/dl/sym.c (rb_dlsym_guardcall): __declspec(noinline) is VC7
feature. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r--ext/dl/sym.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/dl/sym.c b/ext/dl/sym.c
index adf6137ed..8044e6a4b 100644
--- a/ext/dl/sym.c
+++ b/ext/dl/sym.c
@@ -354,11 +354,11 @@ rb_dl_win32_set_last_error(VALUE self, VALUE val)
#ifdef DLSTACK_GUARD
# ifdef __MSVC_RUNTIME_CHECKS
-# pragma runtime_checks("s", off)
+# pragma runtime_checks("s", off)
# endif
-#ifdef _MSC_VER
+# if _MSC_VER >= 1300
__declspec(noinline)
-#endif
+# endif
static int
rb_dlsym_guardcall(char type, ANY_TYPE *ret, long *stack, void *func)
{
@@ -432,7 +432,7 @@ rb_dlsym_guardcall(char type, ANY_TYPE *ret, long *stack, void *func)
return 1;
}
# ifdef __MSVC_RUNTIME_CHECKS
-# pragma runtime_checks("s", restore)
+# pragma runtime_checks("s", restore)
# endif
#endif /* defined(DLSTACK_GUARD) */