[libxml2] Fix a missing #ifdef
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Fix a missing #ifdef
- Date: Wed, 10 Mar 2010 14:03:55 +0000 (UTC)
commit 9ccea57d61db766e7f117f62bd7f900590391cfa
Author: Daniel Veillard <veillard redhat com>
Date: Wed Mar 10 15:02:49 2010 +0100
Fix a missing #ifdef
https://bugzilla.gnome.org/show_bug.cgi?id=611806
Problem raised by Mark Overmeer
xmllint.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/xmllint.c b/xmllint.c
index cb845c7..2a75e3b 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -2655,8 +2655,11 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
if (format)
saveOpts |= XML_SAVE_FORMAT;
+
+#if defined(LIBXML_HTML_ENABLED) || defined(LIBXML_VALID_ENABLED)
if (xmlout)
saveOpts |= XML_SAVE_AS_XML;
+#endif
if (output == NULL)
ctxt = xmlSaveToFd(1, encoding, saveOpts);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]