summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Meissner <wmeissner@gmail.com>2013-03-10 18:40:11 +1000
committerWayne Meissner <wmeissner@gmail.com>2013-03-10 18:40:11 +1000
commit71a78e8d7afad0c632ec436d0ae9f6f56fd5fba1 (patch)
treec345116cce02b94e7e7915bbb2c738324d833e44
parentdc371ecb10f937e0a93729877395b39eff3de76d (diff)
downloadffi-71a78e8d7afad0c632ec436d0ae9f6f56fd5fba1.tar.gz
Try to load the 2.0 pre-compiled lib
-rw-r--r--lib/ffi.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ffi.rb b/lib/ffi.rb
index f43f576..e23e772 100644
--- a/lib/ffi.rb
+++ b/lib/ffi.rb
@@ -5,6 +5,8 @@ if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx'
require '1.8/ffi_c'
elsif RUBY_VERSION =~ /1.9/
require '1.9/ffi_c'
+ elsif RUBY_VERSION =~ /2.0/
+ require '2.0/ffi_c'
else
require 'ffi_c'
end