summaryrefslogtreecommitdiff
path: root/ext/dl/cfunc.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-24 18:46:24 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-24 18:46:24 +0000
commitc6465aeeb153428057426663d51906052e39b36c (patch)
tree245025f0a41a08b0b09457248d22bb04fb05b332 /ext/dl/cfunc.c
parentf9f6289b103f0e3918f7c35333e25683045b1049 (diff)
* ext/dl/cfunc.c (rb_dlcfunc_call): workaround for VC9 for x64.
reported by kuwamoto shintaro in [ruby-dev:42125]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/cfunc.c')
-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 7378a591170..f5ad3ddd637 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: