Skip to content
Browse files

make some header file adjustments for ruby compile

  • Loading branch information...
1 parent 12b17f1 commit 4921e36cbc8fb5220e3c72b88a51dceaa8a3ad25 @tenderlove committed
Showing with 15 additions and 1 deletion.
  1. +11 −0 ext/psych/.gitignore
  2. +1 −1 ext/psych/extconf.rb
  3. +3 −0 ext/psych/yaml/yaml_private.h
View
11 ext/psych/.gitignore
@@ -0,0 +1,11 @@
+/api.c
+/config.h
+/dumper.c
+/emitter.c
+/loader.c
+/parser.c
+/reader.c
+/scanner.c
+/writer.c
+/yaml.h
+/yaml_private.h
View
2 ext/psych/extconf.rb
@@ -11,7 +11,7 @@
srcdir = File.expand_path File.dirname __FILE__
files = Dir.chdir File.join(srcdir, 'yaml') do
Dir.entries(Dir.pwd).find_all { |f|
- File.file? f
+ File.file?(f) && File.extname(f) =~ /^\.[hc]/
}.map { |f| File.expand_path f }
end
View
3 ext/psych/yaml/yaml_private.h
@@ -1,3 +1,6 @@
+#ifdef RUBY_EXTCONF_H
+#include RUBY_EXTCONF_H
+#endif
#if HAVE_CONFIG_H
#include <config.h>

0 comments on commit 4921e36

Please sign in to comment.
Something went wrong with that request. Please try again.