зеркало из https://github.com/github/ruby.git
* ext/fiddle/extconf.rb, ext/fiddle/function.c
(Fiddle::Function::STDCALL): FFI_STDCALL is not a macro, but an enumeration. [ruby-core:50398] [Bug #7483] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7c1a19b641
Коммит
4bb1bfa0ed
|
@ -1,3 +1,9 @@
|
||||||
|
Sat Dec 1 00:48:19 2012 Naohisa Goto <ngotogenome@gmail.com>
|
||||||
|
|
||||||
|
* ext/fiddle/extconf.rb, ext/fiddle/function.c
|
||||||
|
(Fiddle::Function::STDCALL): FFI_STDCALL is not a macro, but an
|
||||||
|
enumeration. [ruby-core:50398] [Bug #7483]
|
||||||
|
|
||||||
Sat Dec 1 00:08:55 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
Sat Dec 1 00:08:55 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* test/rubygems/test_gem_installer.rb
|
* test/rubygems/test_gem_installer.rb
|
||||||
|
|
|
@ -33,6 +33,8 @@ elsif have_header "windows.h"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
have_const('FFI_STDCALL', 'ffi.h') || have_const('FFI_STDCALL', 'ffi/ffi.h')
|
||||||
|
|
||||||
config = File.read(RbConfig.expand(File.join($arch_hdrdir, "ruby/config.h")))
|
config = File.read(RbConfig.expand(File.join($arch_hdrdir, "ruby/config.h")))
|
||||||
types = {"SIZE_T"=>"SSIZE_T", "PTRDIFF_T"=>nil, "INTPTR_T"=>nil}
|
types = {"SIZE_T"=>"SSIZE_T", "PTRDIFF_T"=>nil, "INTPTR_T"=>nil}
|
||||||
types.each do |type, signed|
|
types.each do |type, signed|
|
||||||
|
|
|
@ -194,7 +194,7 @@ Init_fiddle_function(void)
|
||||||
*/
|
*/
|
||||||
rb_define_const(cFiddleFunction, "DEFAULT", INT2NUM(FFI_DEFAULT_ABI));
|
rb_define_const(cFiddleFunction, "DEFAULT", INT2NUM(FFI_DEFAULT_ABI));
|
||||||
|
|
||||||
#ifdef FFI_STDCALL
|
#ifdef HAVE_CONST_FFI_STDCALL
|
||||||
/*
|
/*
|
||||||
* Document-const: STDCALL
|
* Document-const: STDCALL
|
||||||
*
|
*
|
||||||
|
|
Загрузка…
Ссылка в новой задаче