mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix commit miss
* ext/win32/lib/win32/importer.rb: miss to add at r41936. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
03813f6dac
commit
265de6677c
1 changed files with 14 additions and 0 deletions
14
ext/win32/lib/win32/importer.rb
Normal file
14
ext/win32/lib/win32/importer.rb
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
begin
|
||||||
|
require 'fiddle/import'
|
||||||
|
importer = Fiddle::Importer
|
||||||
|
rescue LoadError
|
||||||
|
require 'dl/import'
|
||||||
|
importer = DL::Importer
|
||||||
|
end
|
||||||
|
|
||||||
|
module Win32
|
||||||
|
end
|
||||||
|
|
||||||
|
Win32.module_eval do
|
||||||
|
Importer = importer
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue