Sha256: 7c5a4ba1b0493306e1d5de2447d40b04e80bae89e144d635e4930ba93a2c1b28

Contents?: true

Size: 569 Bytes

Versions: 2

Compression:

Stored size: 569 Bytes

Contents

require 'rbconfig'

if RUBY_PLATFORM =~ /mswin$|mingw32|mingw64|win32\-|\-win32/
  binary_path = File.dirname(__FILE__)
  # 64-bit builds of Windows use "x64-mingw32" as RUBY_PLATFORM
  binary_path += '64' if RUBY_PLATFORM =~ /^x64-/
  
  # Add this gem to the PATH on Windows so that bundled DLLs can be found.
  ENV['PATH'] = "#{binary_path};#{ENV['PATH']}"
  
  # Add the correct directory 
  RUBY_VERSION =~ /(\d+.\d+)/
  $LOAD_PATH.unshift "#{binary_path}/#{$1}"
end

require "gosu.#{RbConfig::CONFIG['DLEXT']}"

require "gosu/swig_patches"
require "gosu/patches"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gosu-0.11.3.pre1 lib/gosu.rb
gosu-0.11.2 lib/gosu.rb