#3518: Expat version check in #defines incorrect

This commit is contained in:
Günter Obiltschnig 2022-02-19 10:40:46 +01:00
parent 010cf8b7d0
commit df20425463

View File

@ -604,7 +604,7 @@ void ParserEngine::handleError(int errorNo)
throw SAXParseException("Reserved prefix 'xmlns' must not be declared or undeclared", locator()); throw SAXParseException("Reserved prefix 'xmlns' must not be declared or undeclared", locator());
case XML_ERROR_RESERVED_NAMESPACE_URI: case XML_ERROR_RESERVED_NAMESPACE_URI:
throw SAXParseException("Prefix must not be bound to one of the reserved namespace names", locator()); throw SAXParseException("Prefix must not be bound to one of the reserved namespace names", locator());
#if XML_MAJOR_VERSION > 2 || XML_MINOR_VERSION >= 1 #if XML_MAJOR_VERSION > 2 || (XML_MINOR_VERSION >= 2 && XML_MICRO_VERSION >= 1)
case XML_ERROR_INVALID_ARGUMENT: case XML_ERROR_INVALID_ARGUMENT:
throw SAXParseException("Invalid argument", locator()); throw SAXParseException("Invalid argument", locator());
#endif #endif