aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-30 09:46:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-30 09:46:57 +0000
commite8f43ad081e35d8779666f79f01d9c59a4122c29 (patch)
tree9925d2ebe8357dc6be9329b2a7ce79aabd7970db /lib
parent51525e12b8e61979567ccf12da300a11237ba9a3 (diff)
downloadruby-e8f43ad081e35d8779666f79f01d9c59a4122c29.tar.gz
* object.c (rb_Integer): Integer(nil) should raise TypeError.
[ruby-talk:210205] * object.c (nil_to_s): no longer returns empty string but "nil". [ruby-talk:210205] * lib/mkmf.rb: avoid COMMON_HEADERS being nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index b019b5f755..c5d9b194e3 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1501,7 +1501,7 @@ end
config_string('COMMON_HEADERS') do |s|
Shellwords.shellwords(s).each {|s| hdr << "#include <#{s}>"}
end
-COMMON_HEADERS = (hdr.join("\n") unless hdr.empty?)
+COMMON_HEADERS = if hdr.empty? then "" else hdr.join("\n") end
COMMON_LIBS = config_string('COMMON_LIBS', &split) || []
COMPILE_RULES = config_string('COMPILE_RULES', &split) || %w[.%s.%s:]