summaryrefslogtreecommitdiff
path: root/ext/tk/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/extconf.rb')
-rw-r--r--ext/tk/extconf.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/tk/extconf.rb b/ext/tk/extconf.rb
index 1f4f37a215..8035fa7b21 100644
--- a/ext/tk/extconf.rb
+++ b/ext/tk/extconf.rb
@@ -2017,6 +2017,9 @@ if (TkLib_Config["tcltk-framework"] ||
$INSTALLFILES ||= []
$INSTALLFILES << ["lib/tkextlib/SUPPORT_STATUS", "$(RUBYLIBDIR)", "lib"]
+ # remove harmful definitions.
+ $defs.delete_if{|x|/^-Du?intptr_t=/ =~ x}
+
# create
$defs << %[-DRUBY_VERSION=\\"#{RUBY_VERSION}\\"]
$defs << %[-DRUBY_RELEASE_DATE=\\"#{RUBY_RELEASE_DATE}\\"]