diff options
author | Masaya TARUI <tarui@prx.jp> | 2012-11-17 10:46:54 +0900 |
---|---|---|
committer | Masaya TARUI <tarui@prx.jp> | 2012-11-17 10:46:54 +0900 |
commit | ad923729fc99b1723d80f1f81d790c532eb13521 (patch) | |
tree | 7d81ce5bba386bedc6e3c05ef75b9f3c46dda564 /ext | |
parent | de14843a5c769805f7434ef5fdc4ca92a288b45d (diff) | |
download | psych-ad923729fc99b1723d80f1f81d790c532eb13521.tar.gz |
for compiling on mswin
I checked only mswin environment.
Maybe it is required for mingw?
Diffstat (limited to 'ext')
-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: |