Skip to content

Commit

Permalink
Fixes for html parser context allowing compilation on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
cfis committed Mar 7, 2009
1 parent d7e4f12 commit f7560a0
Show file tree
Hide file tree
Showing 3 changed files with 292 additions and 185 deletions.
4 changes: 2 additions & 2 deletions ext/libxml/cbg.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "ruby_libxml.h"
#include <string.h>
#include <libxml/xmlIO.h>
#include <libxml/xmlIO.h>

/*
/*yesno
int xmlRegisterInputCallbacks (xmlInputMatchCallback matchFunc,
xmlInputOpenCallback openFunc,
xmlInputReadCallback readFunc,
Expand Down
8 changes: 0 additions & 8 deletions ext/libxml/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,6 @@ def crash(str)
EOL
end

unless have_func('xmlDocFormatDump')
crash('Your version of libxml2 is too old. Please upgrade.')
end

unless have_func('docbCreateFileParserCtxt')
crash('Need docbCreateFileParserCtxt')
end

# For FreeBSD add /usr/local/include
$INCFLAGS << " -I/usr/local/include"

Expand Down
Loading

0 comments on commit f7560a0

Please sign in to comment.