Skip to content

Commit 317e55a

Browse files
committed
Fix include issue, see #209
1 parent 8884433 commit 317e55a

2 files changed

Lines changed: 19 additions & 15 deletions

File tree

ext/libxml/ruby_xml_attributes.h

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
/* Please see the LICENSE file for copyright and distribution information */
2-
3-
#ifndef __RXML_ATTRIBUTES__
4-
#define __RXML_ATTRIBUTES__
5-
6-
extern VALUE cXMLAttributesibutes;
7-
8-
void rxml_init_attributes(void);
9-
VALUE rxml_attributes_new(xmlNodePtr xnode);
10-
11-
VALUE rxml_attributes_attribute_get(VALUE self, VALUE name);
12-
VALUE rxml_attributes_attribute_set(VALUE self, VALUE name, VALUE value);
13-
14-
15-
#endif
1+
/* Please see the LICENSE file for copyright and distribution information */
2+
3+
#ifndef __RXML_ATTRIBUTES__
4+
#define __RXML_ATTRIBUTES__
5+
6+
#include <libxml/tree.h>
7+
8+
extern VALUE cXMLAttributesibutes;
9+
10+
void rxml_init_attributes(void);
11+
VALUE rxml_attributes_new(xmlNodePtr xnode);
12+
13+
VALUE rxml_attributes_attribute_get(VALUE self, VALUE name);
14+
VALUE rxml_attributes_attribute_set(VALUE self, VALUE name, VALUE value);
15+
16+
17+
#endif

ext/libxml/ruby_xml_encoding.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#define __RXML_ENCODING__
55

66
#include <ruby/encoding.h>
7+
#include <libxml/encoding.h>
8+
#include <libxml/xmlstring.h>
79

810
extern VALUE mXMLEncoding;
911

0 commit comments

Comments
 (0)