[libxslt] xincludestyle wasn't protected with LIBXML_XINCLUDE_ENABLED



commit 9e5d4dc5c0c7a4810eee28d1cdebc86e587f76bf
Author: Michael Bonfils <murlock42 gmail com>
Date:   Thu Aug 16 17:46:29 2012 +0800

    xincludestyle wasn't protected with LIBXML_XINCLUDE_ENABLED
    
    Leading to possible compilation issue if this isn't in libxml2

 xsltproc/xsltproc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index 42d6b9a..35f37e8 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -819,6 +819,7 @@ main(int argc, char **argv)
 	    style = xmlReadFile((const char *) argv[i], NULL, options);
             if (timing)
 		endTimer("Parsing stylesheet %s", argv[i]);
+#ifdef LIBXML_XINCLUDE_ENABLED
 	    if (xincludestyle) {
 		if (style != NULL) {
 		    if (timing)
@@ -833,6 +834,7 @@ main(int argc, char **argv)
 		    }
 		}
 	    }
+#endif
 	    if (style == NULL) {
 		fprintf(stderr,  "cannot parse %s\n", argv[i]);
 		cur = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]