diff --git a/expat/lib/expat.h b/expat/lib/expat.h index 95464b0d..79bbfb61 100644 --- a/expat/lib/expat.h +++ b/expat/lib/expat.h @@ -1042,7 +1042,7 @@ typedef struct { XMLPARSEAPI(const XML_Feature *) XML_GetFeatureList(void); -#if XML_GE == 1 +#if defined(XML_GE) && XML_GE == 1 /* Added in Expat 2.4.0 for XML_DTD defined and * added in Expat 2.6.0 for XML_GE == 1. */ XMLPARSEAPI(XML_Bool) diff --git a/expat/lib/internal.h b/expat/lib/internal.h index cce71e4c..208c6b67 100644 --- a/expat/lib/internal.h +++ b/expat/lib/internal.h @@ -155,7 +155,7 @@ extern "C" { void _INTERNAL_trim_to_complete_utf8_characters(const char *from, const char **fromLimRef); -#if XML_GE == 1 +#if defined(XML_GE) && XML_GE == 1 unsigned long long testingAccountingGetCountBytesDirect(XML_Parser parser); unsigned long long testingAccountingGetCountBytesIndirect(XML_Parser parser); const char *unsignedCharToPrintable(unsigned char c);