Browse files

for compiling on mswin

I checked only mswin environment.
Maybe it is required for mingw?
  • Loading branch information...
1 parent de14843 commit ad923729fc99b1723d80f1f81d790c532eb13521 @tarui 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 ad92372

Please sign in to comment.