Skip to content

Commit

Permalink
code to return FFI::Platform::LIBSUFFIX on windows, darwin and other
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Remes committed Aug 24, 2011
1 parent e289758 commit 3790ba5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kernel/platform/ffi.rb
Expand Up @@ -189,5 +189,14 @@ def initialize(element_type, size, impl_class=nil)
# Namespace for holding platform-specific C constants.

module FFI::Platform
case Rubinius::OS_TYPE
when :windows
LIBSUFFIX = ".dll"
when :darwin
LIBSUFFIX = ".dylib"
else
LIBSUFFIX = ".so"
end

end

0 comments on commit 3790ba5

Please sign in to comment.