summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-11-17 12:51:47 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-11-17 12:51:47 -0800
commita9d1ae74a557ea2e92b79e023870854054b664d2 (patch)
tree5e3969f363e0aecd6202e3419b5e78fc1daf000a
parent7475a24ab333b8ef03d3baa615e59557a02541a6 (diff)
downloadpsych-a9d1ae74a557ea2e92b79e023870854054b664d2.tar.gz
mkmf has a global for this test
-rw-r--r--ext/psych/extconf.rb3
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