aboutsummaryrefslogtreecommitdiffstats
path: root/xmlstub.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2004-10-18 14:58:32 +0000
committerGerald Combs <gerald@wireshark.org>2004-10-18 14:58:32 +0000
commitd7d9c6be54d7d7c6d5df15639d7e3b1f1a785812 (patch)
tree9fe5c95951ecdf5a33e88844824127483054718c /xmlstub.h
parentd6a21825355b38955fd907ef2c538997a24e7f99 (diff)
From Olivier Jacques: Add #defines to disable XML validation.
svn path=/trunk/; revision=12340
Diffstat (limited to 'xmlstub.h')
-rw-r--r--xmlstub.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/xmlstub.h b/xmlstub.h
index 54532dcaf0..47a6d0a0ef 100644
--- a/xmlstub.h
+++ b/xmlstub.h
@@ -8,6 +8,13 @@
#include "config.h"
+/****************** specific to ethereal ********************************/
+/*
+ * Uncomment the following line to restore XML_DO_VALIDITY_CHECKING
+ * behavior which is causing issues on WIN32 platforms. See:
+ * http://www.ethereal.com/lists/ethereal-dev/200410/msg00194.html
+ */
+/* #define ETHEREAL_XML_DO_VALIDITY_CHECKING */
/****************** From xml headers ************************************/
/*
@@ -1088,10 +1095,9 @@ typedef struct {
char *(*xmlGetProp)(xmlNodePtr, char *);
int (*xmlKeepBlanksDefault)(int);
int (*xmlSubstituteEntitiesDefault)(int);
-
- /* Variables */
- int *xmlDoValidityCheckingDefaultValue;
-
+#ifdef ETHEREAL_XML_DO_VALIDITY_CHECKING
+ int *xmlDoValidityCheckingDefaultValue;
+#endif
} XML_STUB;
XML_EXTERN XML_STUB XmlStub;