blob: ce099e0c09c2a6d3155bb0d12134a2b6cc15574d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
if ENV['FORCE_FFI_YAJL'] == "ext"
require 'ffi_yajl/ext'
elsif ENV['FORCE_FFI_YAJL'] == "ffi" || defined?(Yajl)
# - c-extension segfaults on ruby 1.8.7
require 'ffi_yajl/ffi'
else
begin
require 'ffi_yajl/ext'
rescue LoadError
require 'ffi_yajl/ffi'
end
end
|