summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-11 03:54:35 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-11 03:54:35 (GMT)
commit463856a7c4133cc3da8d611bee9c3af67ed95159 (patch)
treec16e5dd8e5a4cd2fa47427472f24112949edb9d5 /ext/fiddle
parent7dddd592d1f79817947ffe71eb872eb8787b7db0 (diff)
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')
-rw-r--r--ext/fiddle/win32/libffi-3.2.1-mswin.patch15
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 fc0ed51..f9100e7 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
+