Forum: Ruby-core [ruby-trunk - Bug #7483][Open] Fiddle::Function::STDCALL is never defined even on WIN32

Posted by ngoto (Naohisa Goto) (Guest)
on 2012-11-30 16:49
(Received via mailing list)
Issue #7483 has been reported by ngoto (Naohisa Goto).

----------------------------------------
Bug #7483: Fiddle::Function::STDCALL is never defined even on WIN32
https://bugs.ruby-lang.org/issues/7483

Author: ngoto (Naohisa Goto)
Status: Open
Priority: Normal
Assignee: tenderlovemaking (Aaron Patterson)
Category:
Target version:
ruby -v: -


In ext/fiddle/function.c, Fiddle::Function::STDCALL is defined only when 
"#ifdef FFI_STDCALL" is true. However, in ffi.h, FFI_STDCALL is declared 
as an enumerated type, not a macro, and it is always false even on x86 
WIN32. According to the Changelog in libffi-3.0.11.tar.gz, FFI_STDCALL 
was first added in 2002-11-10 as an enumeration.

I create a patch to check existance of FFI_STDCALL in extconf.rb.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.