summaryrefslogtreecommitdiff
path: root/Utilities/cmexpat
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmexpat')
-rw-r--r--Utilities/cmexpat/xmltok_impl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmexpat/xmltok_impl.c b/Utilities/cmexpat/xmltok_impl.c
index d9ba2195d6..6e0be95515 100644
--- a/Utilities/cmexpat/xmltok_impl.c
+++ b/Utilities/cmexpat/xmltok_impl.c
@@ -7,6 +7,7 @@ See the file COPYING for copying permission.
#define IS_INVALID_CHAR(enc, ptr, n) (0)
#endif
+#ifndef INVALID_LEAD_CASE
#define INVALID_LEAD_CASE(n, ptr, nextTokPtr) \
case BT_LEAD ## n: \
if (end - ptr < n) \
@@ -17,6 +18,7 @@ See the file COPYING for copying permission.
} \
ptr += n; \
break;
+#endif
#define INVALID_CASES(ptr, nextTokPtr) \
INVALID_LEAD_CASE(2, ptr, nextTokPtr) \