diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-11-17 12:51:47 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-11-17 12:51:47 -0800 |
commit | a9d1ae74a557ea2e92b79e023870854054b664d2 (patch) | |
tree | 5e3969f363e0aecd6202e3419b5e78fc1daf000a /ext/psych/extconf.rb | |
parent | 7475a24ab333b8ef03d3baa615e59557a02541a6 (diff) | |
download | psych-a9d1ae74a557ea2e92b79e023870854054b664d2.tar.gz |
mkmf has a global for this test
Diffstat (limited to 'ext/psych/extconf.rb')
-rw-r--r-- | ext/psych/extconf.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb index e22fd89..5bef73d 100644 --- a/ext/psych/extconf.rb +++ b/ext/psych/extconf.rb @@ -17,8 +17,7 @@ have_header 'sys/types.h' have_header 'unistd.h' unless find_header('yaml.h') && find_library('yaml', 'yaml_get_version') - case RUBY_PLATFORM - when /mswin/ + if $mswin $CFLAGS += " -DYAML_DECLARE_STATIC -DHAVE_CONFIG_H" end |