[前][次][番号順一覧][スレッド一覧]

ruby-changes:37126

From: nobu <ko1@a...>
Date: Sun, 11 Jan 2015 12:54:50 +0900 (JST)
Subject: [ruby-changes:37126] nobu:r49207 (trunk): fiddle: fix for old VC

nobu	2015-01-11 12:54:35 +0900 (Sun, 11 Jan 2015)

  New Revision: 49207

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49207

  Log:
    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.

  Modified files:
    trunk/ext/fiddle/win32/libffi-3.2.1-mswin.patch
Index: ext/fiddle/win32/libffi-3.2.1-mswin.patch
===================================================================
--- ext/fiddle/win32/libffi-3.2.1-mswin.patch	(revision 49206)
+++ ext/fiddle/win32/libffi-3.2.1-mswin.patch	(revision 49207)
@@ -174,3 +174,18 @@ diff -ru libffi-3.2.1/src/x86/win64.S li https://github.com/ruby/ruby/blob/trunk/ext/fiddle/win32/libffi-3.2.1-mswin.patch#L174
  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
+ 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]