summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 3f88fe3..8808455 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -71,7 +71,7 @@ module MakeMakefile
# Extensions for files complied with a C++ compiler
CXX_EXT = %w[cc mm cxx cpp]
- if File::FNM_SYSCASE.zero?
+ unless File.exist?(File.join(*File.split(__FILE__).tap {|d, b| b.swapcase}))
CXX_EXT.concat(%w[C])
end