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

ruby-changes:28173

From: naruse <ko1@a...>
Date: Thu, 11 Apr 2013 10:40:21 +0900 (JST)
Subject: [ruby-changes:28173] naruse:r40225 (trunk): * ext/fiddle/closure.c (USE_FFI_CLOSURE_ALLOC): add missing case:

naruse	2013-04-11 10:40:11 +0900 (Thu, 11 Apr 2013)

  New Revision: 40225

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

  Log:
    * ext/fiddle/closure.c (USE_FFI_CLOSURE_ALLOC): add missing case:
      RUBY_LIBFFI_MODVERSION is not defined (usually on Windows).

  Modified files:
    trunk/ChangeLog
    trunk/ext/fiddle/closure.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40224)
+++ ChangeLog	(revision 40225)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Apr 11 10:39:34 2013  NARUSE, Yui  <naruse@r...>
+
+	* ext/fiddle/closure.c (USE_FFI_CLOSURE_ALLOC): add missing case:
+	  RUBY_LIBFFI_MODVERSION is not defined (usually on Windows).
+
 Thu Apr 11 09:27:04 2013  Konstantin Haase  <me@r...>
 
 	* dir.c (file_s_fnmatch): Document File::FNM_EXTGLOB flag.
Index: ext/fiddle/closure.c
===================================================================
--- ext/fiddle/closure.c	(revision 40224)
+++ ext/fiddle/closure.c	(revision 40225)
@@ -13,7 +13,7 @@ typedef struct { https://github.com/ruby/ruby/blob/trunk/ext/fiddle/closure.c#L13
 #if defined(USE_FFI_CLOSURE_ALLOC)
 #elif defined(__OpenBSD__)
 # define USE_FFI_CLOSURE_ALLOC 0
-#elif RUBY_LIBFFI_MODVERSION < 3000005 && \
+#elif defined(RUBY_LIBFFI_MODVERSION) && RUBY_LIBFFI_MODVERSION < 3000005 && \
 	(defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_AMD64))
 # define USE_FFI_CLOSURE_ALLOC 0
 #else

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

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