ruby: fix windows platform detection

develop
Yoann Guillot 2014-11-16 13:00:38 +01:00
parent 9fd6e9f03c
commit 889bd06ffc
1 changed files with 1 additions and 1 deletions

@ -241,7 +241,7 @@ end
# load autogenned file # load autogenned file
require './hack/ruby/ruby-autogen-defs' require './hack/ruby/ruby-autogen-defs'
require(RUBY_PLATFORM =~ /mswin/i ? './hack/ruby/ruby-autogen-win' : './hack/ruby/ruby-autogen-gcc') require(RUBY_PLATFORM =~ /mswin|mingw|cygwin/i ? './hack/ruby/ruby-autogen-win' : './hack/ruby/ruby-autogen-gcc')
# load all modules # load all modules
Dir['./hack/ruby/*.rb'].each { |m| require m.chomp('.rb') if m !~ /ruby-autogen/ } Dir['./hack/ruby/*.rb'].each { |m| require m.chomp('.rb') if m !~ /ruby-autogen/ }