summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-12 10:59:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-12 10:59:52 +0000
commitf061990c15f5b554287063239f48531594180643 (patch)
tree62a8307f428457769831580c8eaa9979ec25fb42 /lib/mkmf.rb
parent664dbfbf2aa9f2898659a03b71d4cb82b2557870 (diff)
* lib/mkmf.rb (have_type, check_sizeof): replace unusable characters.
[ruby-talk:99788] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 65ae853bac..a6d1413b1e 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -564,7 +564,7 @@ SRC
/*top*/
static #{type} *t;
SRC
- $defs.push(format("-DHAVE_TYPE_%s", type.upcase))
+ $defs.push(format("-DHAVE_TYPE_%s", type.upcase.tr_s("^A-Z0-9_", "_")))
true
else
false
@@ -578,7 +578,7 @@ def check_sizeof(type, header = nil, &b)
message "%s", m
Logging::message "check_sizeof: %s--------------------\n", m
if size = try_constant(expr, header, &b)
- $defs.push(format("-DSIZEOF_%s", type.upcase))
+ $defs.push(format("-DSIZEOF_%s", type.upcase.tr_s("^A-Z0-9_", "_")))
end
message(a = size ? "#{size}\n" : "failed\n")
Logging::message "-------------------- %s\n", a