Ver Fonte

COMP: fix warnings

Bill Hoffman há 20 anos atrás
pai
commit
ea59fb06df
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      Utilities/cmexpat/xmltok_impl.c

+ 2 - 0
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) \