summaryrefslogtreecommitdiff
path: root/ext/Win32API/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Win32API/extconf.rb')
-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 b69459c275..d7658cfff8 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