ox 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/ox/sax.c +4 -0
- data/lib/ox/version.rb +1 -1
- metadata +2 -2
data/ext/ox/sax.c
CHANGED
|
@@ -63,7 +63,9 @@ typedef struct _SaxDrive {
|
|
|
63
63
|
int has_start_element;
|
|
64
64
|
int has_end_element;
|
|
65
65
|
int has_error;
|
|
66
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
|
66
67
|
rb_encoding *encoding;
|
|
68
|
+
#endif
|
|
67
69
|
} *SaxDrive;
|
|
68
70
|
|
|
69
71
|
static void sax_drive_init(SaxDrive dr, VALUE handler, VALUE io);
|
|
@@ -204,7 +206,9 @@ sax_drive_init(SaxDrive dr, VALUE handler, VALUE io) {
|
|
|
204
206
|
dr->has_start_element = rb_respond_to(handler, start_element_id);
|
|
205
207
|
dr->has_end_element = rb_respond_to(handler, end_element_id);
|
|
206
208
|
dr->has_error = rb_respond_to(handler, error_id);
|
|
209
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
|
207
210
|
dr->encoding = 0;
|
|
211
|
+
#endif
|
|
208
212
|
}
|
|
209
213
|
|
|
210
214
|
static void
|
data/lib/ox/version.rb
CHANGED