diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-16 04:29:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-16 04:29:01 +0000 |
commit | c7d11ee1ba70525f279a7d2f3d69fd273801b624 (patch) | |
tree | dbc6abf0d1b882d988038416011a4ed8ad91bafa /test/fiddle/test_handle.rb | |
parent | 572807ee995ea94303cbd78d50c77c163c4a89d2 (diff) | |
download | ruby-c7d11ee1ba70525f279a7d2f3d69fd273801b624.tar.gz |
configure.in: revert macro names
* configure.in (FUNC_STDCALL, FUNC_CDECL, FUNC_FASTCALL): set
macro names explicitly to the old names, which are accidentally
changed at r54985, for backward compatibilities.
fiddle also depends on these names to fallback to ANSI names.
[ruby-core:75494] [Bug #12377]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fiddle/test_handle.rb')
-rw-r--r-- | test/fiddle/test_handle.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fiddle/test_handle.rb b/test/fiddle/test_handle.rb index fecf366f4f..6ac957a474 100644 --- a/test/fiddle/test_handle.rb +++ b/test/fiddle/test_handle.rb @@ -182,5 +182,12 @@ module Fiddle def test_no_memory_leak assert_no_memory_leak(%w[-W0 -rfiddle.so], '', '100_000.times {Fiddle::Handle.allocate}; GC.start', rss: true) end + + if /cygwin|mingw|mswin/ =~ RUBY_PLATFORM + def test_fallback_to_ansi + k = Fiddle::Handle.new("kernel32.dll") + refute_nil(k["GetFileAttributes"]) + end + end end end if defined?(Fiddle) |