summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasaya TARUI <tarui@prx.jp>2012-11-17 10:46:54 +0900
committerMasaya TARUI <tarui@prx.jp>2012-11-17 10:46:54 +0900
commitad923729fc99b1723d80f1f81d790c532eb13521 (patch)
tree7d81ce5bba386bedc6e3c05ef75b9f3c46dda564
parentde14843a5c769805f7434ef5fdc4ca92a288b45d (diff)
downloadpsych-ad923729fc99b1723d80f1f81d790c532eb13521.tar.gz
for compiling on mswin
I checked only mswin environment. Maybe it is required for mingw?
-rw-r--r--ext/psych/extconf.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index f16a13f..717aa34 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -14,6 +14,11 @@ have_header 'sys/types.h'
have_header 'unistd.h'
have_header 'config.h'
+case RUBY_PLATFORM
+when /mswin/
+ $CFLAGS += " -DYAML_DECLARE_STATIC -DHAVE_CONFIG_H"
+end
+
create_makefile 'psych'
# :startdoc: