summaryrefslogtreecommitdiff
path: root/ext/dl
diff options
context:
space:
mode:
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 adf6137edf..8044e6a4bb 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) */