diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-11-16 18:21:08 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-11-16 18:21:08 -0800 |
commit | b8e9d7eb55e59d19de33f828c6979a76d9a0fedc (patch) | |
tree | 7d81ce5bba386bedc6e3c05ef75b9f3c46dda564 | |
parent | de14843a5c769805f7434ef5fdc4ca92a288b45d (diff) | |
parent | ad923729fc99b1723d80f1f81d790c532eb13521 (diff) | |
download | psych-b8e9d7eb55e59d19de33f828c6979a76d9a0fedc.tar.gz |
Merge pull request #101 from tarui/embed
for compiling on mswin
-rw-r--r-- | ext/psych/extconf.rb | 5 |
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: |