From 9da2dcb8a26f7d953ea73a0c0e85ed370f900c8e Mon Sep 17 00:00:00 2001 From: Carter Bray Date: Sun, 31 Jul 2016 17:01:57 -0700 Subject: [PATCH] Fix raw_vcall on Win64 builds MSVC's call conventions on x64 are the same for normal function calls and member function calls (with the addition of the implicit 'this' parameter). --- plugins/ruby/ruby.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ruby/ruby.cpp b/plugins/ruby/ruby.cpp index adc451a19..127a49b69 100644 --- a/plugins/ruby/ruby.cpp +++ b/plugins/ruby/ruby.cpp @@ -1023,7 +1023,7 @@ static VALUE rb_dfmemory_set_clear(VALUE self, VALUE set) /* call an arbitrary object virtual method */ -#ifdef WIN32 +#if defined(_WIN32) && !defined(_WIN64) __declspec(naked) static int raw_vcall(void *that, void *fptr, unsigned long a0, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4, unsigned long a5) {