Use defined? instead of version float check.

bug/bundler_fix
Joe Vennix 2013-08-23 16:59:36 -05:00
parent ba00395cfd
commit 87d8e16001
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ module OSXRubyDLHelpers
end
def malloc(size)
if ruby_1_9_or_higher?
if defined?(DL::CPtr)
DL::CPtr.malloc(size)
else
DL::malloc(size)