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.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/Win32API/extconf.rb b/ext/Win32API/extconf.rb
new file mode 100644
index 0000000..78b5f6a
--- /dev/null
+++ b/ext/Win32API/extconf.rb
@@ -0,0 +1,7 @@
+if PLATFORM =~ /win32/i
+ $:.unshift '../..'
+ require 'rbconfig'
+ include Config
+ $CFLAGS = "-fno-defer-pop" if /gcc/ =~ CONFIG['CC']
+ create_makefile("Win32API")
+end