diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-11 03:54:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-11 03:54:35 +0000 |
commit | 463856a7c4133cc3da8d611bee9c3af67ed95159 (patch) | |
tree | c16e5dd8e5a4cd2fa47427472f24112949edb9d5 /ext/fiddle/win32 | |
parent | 7dddd592d1f79817947ffe71eb872eb8787b7db0 (diff) | |
download | ruby-463856a7c4133cc3da8d611bee9c3af67ed95159.tar.gz |
fiddle: fix for old VC
* ext/fiddle/win32/libffi-3.2.1-mswin.patch (include/ffi.h.in):
old version VCs did not support long long, use __int64 instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle/win32')
-rw-r--r-- | ext/fiddle/win32/libffi-3.2.1-mswin.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/fiddle/win32/libffi-3.2.1-mswin.patch b/ext/fiddle/win32/libffi-3.2.1-mswin.patch index fc0ed51564..f9100e703d 100644 --- a/ext/fiddle/win32/libffi-3.2.1-mswin.patch +++ b/ext/fiddle/win32/libffi-3.2.1-mswin.patch @@ -174,3 +174,18 @@ diff -ru libffi-3.2.1/src/x86/win64.S libffi-3.2.1/src/x86/win64.S ffi_call_win64 ENDP _TEXT ENDS END +diff -ru libffi-3.2.1/include/ffi.h.in libffi-3.2.1/include/ffi.h.in +--- libffi-3.2.1/include/ffi.h.in 2014-11-08 21:47:24.000000000 +0900 ++++ libffi-3.2.1/include/ffi.h.in 2015-01-11 12:35:30.000000000 +0900 +@@ -103,6 +103,11 @@ + # undef FFI_64_BIT_MAX + # define FFI_64_BIT_MAX 9223372036854775807LL + # endif ++# ifdef _MSC_VER ++# define FFI_LONG_LONG_MAX _I64_MAX ++# undef FFI_64_BIT_MAX ++# define FFI_64_BIT_MAX 9223372036854775807I64 ++# endif + # endif + #endif + |