summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ffi_yajl/ext.rb2
-rw-r--r--lib/ffi_yajl/map_library_name.rb5
2 files changed, 2 insertions, 5 deletions
diff --git a/lib/ffi_yajl/ext.rb b/lib/ffi_yajl/ext.rb
index 937db99..7ecf172 100644
--- a/lib/ffi_yajl/ext.rb
+++ b/lib/ffi_yajl/ext.rb
@@ -2,10 +2,12 @@ require 'rubygems'
require 'ffi_yajl/encoder'
require 'ffi_yajl/parser'
+require 'ffi_yajl/ext/dlopen'
require 'ffi_yajl/map_library_name'
module FFI_Yajl
extend FFI_Yajl::MapLibraryName
+ extend FFI_Yajl::Ext::Dlopen
dlopen_yajl_library
diff --git a/lib/ffi_yajl/map_library_name.rb b/lib/ffi_yajl/map_library_name.rb
index c4ea744..84a9b0b 100644
--- a/lib/ffi_yajl/map_library_name.rb
+++ b/lib/ffi_yajl/map_library_name.rb
@@ -1,12 +1,7 @@
require 'libyajl2'
-require 'ffi_yajl/platform'
-require 'ffi_yajl/ext/dlopen'
module FFI_Yajl
module MapLibraryName
- include FFI_Yajl::Platform
- include FFI_Yajl::Ext::Dlopen
-
def library_names
case RbConfig::CONFIG['host_os'].downcase
when /mingw|mswin/