Skip to content

Commit

Permalink
Merge pull request #425 from gosu/high-sierra-fix
Browse files Browse the repository at this point in the history
Fix #424 by silencing reserved UDL warning
  • Loading branch information
jlnr committed Jan 14, 2018
2 parents 430ad4d + 2c32486 commit 2bf187f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions ext/gosu/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

$CXXFLAGS ||= ""
$CXXFLAGS << " -std=gnu++11"
$CXXFLAGS << " -Wno-reserved-user-defined-literal" # see https://github.com/gosu/gosu/issues/424

# For #include <Gosu/...>
$INCFLAGS << " -I../.."
Expand Down
4 changes: 4 additions & 0 deletions lib/gosu/compat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ module Gosu
deprecate_const :GOSU_COPYRIGHT_NOTICE, :LICENSES

module Button; end

# Channel was called SampleInstance before Gosu 0.13.0.
SampleInstance = Channel
deprecate_const :SampleInstance, :Channel

# Support for KbLeft instead of KB_LEFT and Gp3Button2 instead of GP_3_BUTTON_2.
Gosu.constants.grep(/^KB_|MS_|GP_/).each do |new_name|
Expand Down
5 changes: 0 additions & 5 deletions lib/gosu/patches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ def eql?(other)
end
end

module Gosu
# Backwards compatibility: Channel was called SampleInstance before Gosu 0.13.0.
SampleInstance = Channel
end

class Gosu::Window
# Call Thread.pass every tick, which may or may not be necessary for friendly co-existence with
# Ruby's Thread class.
Expand Down

0 comments on commit 2bf187f

Please sign in to comment.