diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-12 10:59:52 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-12 10:59:52 +0000 |
| commit | 0ffe1abf1567b2d59912543442eadfbbccfa916c (patch) | |
| tree | 62a8307f428457769831580c8eaa9979ec25fb42 /lib | |
| parent | a1d1dbc64bf7c41f0093d3e47e03ed963335571f (diff) | |
| download | ruby-0ffe1abf1567b2d59912543442eadfbbccfa916c.tar.gz ruby-0ffe1abf1567b2d59912543442eadfbbccfa916c.tar.xz ruby-0ffe1abf1567b2d59912543442eadfbbccfa916c.zip | |
* lib/mkmf.rb (have_type, check_sizeof): replace unusable characters.
[ruby-talk:99788]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mkmf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 65ae853ba..a6d1413b1 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 |
