1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

xincludestyle wasn't protected with LIBXML_XINCLUDE_ENABLED

Leading to possible compilation issue if this isn't in libxml2
This commit is contained in:
Michael Bonfils
2012-08-16 17:46:29 +08:00
committed by Daniel Veillard
parent 5e184e7154
commit 9e5d4dc5c0

View File

@ -819,6 +819,7 @@ main(int argc, char **argv)
style = xmlReadFile((const char *) argv[i], NULL, options); style = xmlReadFile((const char *) argv[i], NULL, options);
if (timing) if (timing)
endTimer("Parsing stylesheet %s", argv[i]); endTimer("Parsing stylesheet %s", argv[i]);
#ifdef LIBXML_XINCLUDE_ENABLED
if (xincludestyle) { if (xincludestyle) {
if (style != NULL) { if (style != NULL) {
if (timing) if (timing)
@ -833,6 +834,7 @@ main(int argc, char **argv)
} }
} }
} }
#endif
if (style == NULL) { if (style == NULL) {
fprintf(stderr, "cannot parse %s\n", argv[i]); fprintf(stderr, "cannot parse %s\n", argv[i]);
cur = NULL; cur = NULL;