summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-29 14:24:54 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-29 14:24:54 +0000
commitb19afd42331b2232e662390a2f4e1c19ed5b30e8 (patch)
tree9952b8de698702ec07c8fa3fe7ffc4bc832b3a2f /ext
parent7bbdb88e55b9a7c87cd20129ed88d80937057781 (diff)
downloadruby-b19afd42331b2232e662390a2f4e1c19ed5b30e8.tar.gz
* ext/tk/extconf.rb (intptr_t, uintptr_t): support for the latest ActiveTcl with mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-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 388d6fc1aa..edabadc0ec 100644
--- a/ext/tk/extconf.rb
+++ b/ext/tk/extconf.rb
@@ -1571,6 +1571,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
$CPPFLAGS << %[ -DRUBY_VERSION=\\"#{RUBY_VERSION}\\"]
$CPPFLAGS << %[ -DRUBY_RELEASE_DATE=\\"#{RUBY_RELEASE_DATE}\\"]