Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix build on windows

  • Loading branch information...
commit 7475a24ab333b8ef03d3baa615e59557a02541a6 1 parent 3b066cf
@tenderlove authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 ext/psych/extconf.rb
View
10 ext/psych/extconf.rb
@@ -17,6 +17,11 @@
have_header 'unistd.h'
unless find_header('yaml.h') && find_library('yaml', 'yaml_get_version')
+ case RUBY_PLATFORM
+ when /mswin/
+ $CFLAGS += " -DYAML_DECLARE_STATIC -DHAVE_CONFIG_H"
+ end
+
srcdir = File.expand_path File.dirname __FILE__
files = Dir.chdir File.join(srcdir, 'yaml') do
Dir.entries(Dir.pwd).find_all { |f|
@@ -30,11 +35,6 @@
have_header 'config.h'
end
-case RUBY_PLATFORM
-when /mswin/
- $CFLAGS += " -DYAML_DECLARE_STATIC -DHAVE_CONFIG_H"
-end
-
create_makefile 'psych'
# :startdoc:
Please sign in to comment.
Something went wrong with that request. Please try again.