summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/dl/cfunc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/dl/cfunc.c b/ext/dl/cfunc.c
index 7378a59117..f5ad3ddd63 100644
--- a/ext/dl/cfunc.c
+++ b/ext/dl/cfunc.c
@@ -314,6 +314,9 @@ rb_dlcfunc_inspect(VALUE self)
}
+#if defined(_MSC_VER) && defined(_M_AMD64) && _MSC_VER == 1500
+# pragma optimize("", off)
+#endif
/*
* call-seq:
* dlcfunc.call(ary) => some_value
@@ -579,6 +582,9 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
return result;
}
+#if defined(_MSC_VER) && defined(_M_AMD64) && _MSC_VER == 1500
+# pragma optimize("", on)
+#endif
/*
* call-seq: