summaryrefslogtreecommitdiffstats
path: root/ext/Win32API
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-09 04:36:46 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-09 04:36:46 +0000
commitac3ee85b43376d9039e7244357557a3dde76fe6d (patch)
tree964d284f110e00c0830cbcff60693295e4f69959 /ext/Win32API
parent64d2680db1d67dc92a0e7b0af948d2b5271756fb (diff)
downloadruby-ac3ee85b43376d9039e7244357557a3dde76fe6d.tar.gz
ruby-ac3ee85b43376d9039e7244357557a3dde76fe6d.tar.xz
ruby-ac3ee85b43376d9039e7244357557a3dde76fe6d.zip
* ext/Win32API/extconf.rb: check existence of <windows.h>.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/Win32API')
-rw-r--r--ext/Win32API/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Win32API/extconf.rb b/ext/Win32API/extconf.rb
index b69459c27..d7658cfff 100644
--- a/ext/Win32API/extconf.rb
+++ b/ext/Win32API/extconf.rb
@@ -1,6 +1,6 @@
require 'mkmf'
-if have_library("kernel32")
+if have_header("windows.h") and have_library("kernel32")
if Config::CONFIG["CC"] =~ /gcc/
$CFLAGS += "-fno-defer-pop -fno-omit-frame-pointer"
end