diff options
Diffstat (limited to 'dev-libs/expat/files/xmlstatus.patch')
-rw-r--r-- | dev-libs/expat/files/xmlstatus.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-libs/expat/files/xmlstatus.patch b/dev-libs/expat/files/xmlstatus.patch new file mode 100644 index 000000000000..04cb2a8669ec --- /dev/null +++ b/dev-libs/expat/files/xmlstatus.patch @@ -0,0 +1,30 @@ +--- expat.h 2003-03-17 08:34:33.000000000 +0100 ++++ expat.h.new 2003-03-17 08:35:29.000000000 +0100 +@@ -653,6 +653,13 @@ + Note: Calling XML_SetEncoding after XML_Parse or XML_ParseBuffer + has no effect and returns XML_STATUS_ERROR. + */ ++enum XML_Status { ++ XML_STATUS_ERROR = 0, ++#define XML_STATUS_ERROR XML_STATUS_ERROR ++ XML_STATUS_OK = 1 ++#define XML_STATUS_OK XML_STATUS_OK ++}; ++ + XMLPARSEAPI(enum XML_Status) + XML_SetEncoding(XML_Parser parser, const XML_Char *encoding); + +@@ -732,13 +739,6 @@ + + Otherwise, the #define hackery is quite ugly and would have been dropped. + */ +-enum XML_Status { +- XML_STATUS_ERROR = 0, +-#define XML_STATUS_ERROR XML_STATUS_ERROR +- XML_STATUS_OK = 1 +-#define XML_STATUS_OK XML_STATUS_OK +-}; +- + XMLPARSEAPI(enum XML_Status) + XML_Parse(XML_Parser parser, const char *s, int len, int isFinal); + |