diff options
author | Wayne Meissner <wmeissner@gmail.com> | 2013-03-10 18:40:11 +1000 |
---|---|---|
committer | Wayne Meissner <wmeissner@gmail.com> | 2013-03-10 18:40:11 +1000 |
commit | 71a78e8d7afad0c632ec436d0ae9f6f56fd5fba1 (patch) | |
tree | c345116cce02b94e7e7915bbb2c738324d833e44 | |
parent | dc371ecb10f937e0a93729877395b39eff3de76d (diff) | |
download | ffi-71a78e8d7afad0c632ec436d0ae9f6f56fd5fba1.tar.gz |
Try to load the 2.0 pre-compiled lib
-rw-r--r-- | lib/ffi.rb | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |