summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-11-16 18:21:08 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-11-16 18:21:08 -0800
commitb8e9d7eb55e59d19de33f828c6979a76d9a0fedc (patch)
tree7d81ce5bba386bedc6e3c05ef75b9f3c46dda564
parentde14843a5c769805f7434ef5fdc4ca92a288b45d (diff)
parentad923729fc99b1723d80f1f81d790c532eb13521 (diff)
downloadpsych-b8e9d7eb55e59d19de33f828c6979a76d9a0fedc.tar.gz
Merge pull request #101 from tarui/embed
for compiling on mswin
-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: