Permalink
Browse files

Merge pull request #101 from tarui/embed

for compiling on mswin
  • Loading branch information...
2 parents de14843 + ad92372 commit b8e9d7eb55e59d19de33f828c6979a76d9a0fedc @tenderlove committed Nov 17, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 ext/psych/extconf.rb
View
5 ext/psych/extconf.rb
@@ -14,6 +14,11 @@
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:

0 comments on commit b8e9d7e

Please sign in to comment.