diff options
author | Wayne Meissner <wmeissner@gmail.com> | 2012-11-13 18:23:59 +1100 |
---|---|---|
committer | Wayne Meissner <wmeissner@gmail.com> | 2012-11-13 18:23:59 +1100 |
commit | 0a4cfff21553c36c7e4d789942731c15eb4695c4 (patch) | |
tree | 89f9d53384d47f233d7351ba364eef103eb56a87 | |
parent | 2366a97eaa1d1436ebdff4228955ebfac8da447e (diff) | |
download | ffi-0a4cfff21553c36c7e4d789942731c15eb4695c4.tar.gz |
Apply JRuby loading logic to rbx as well
-rw-r--r-- | lib/ffi.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ if !defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" require 'ffi/ffi' -elsif defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' +elsif defined?(RUBY_ENGINE) && (RUBY_ENGINE == 'jruby' || RUBY_ENGINE == 'rbx') $LOAD_PATH.delete(File.dirname(__FILE__)) $LOAD_PATH.delete(File.join(File.dirname(__FILE__), 'ffi')) unless $LOADED_FEATURES.nil? |