1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

undef ERROR if already defined

This commit is contained in:
Patrick R. Gansterer
2012-05-10 20:24:00 +08:00
committed by Daniel Veillard
parent b91111b475
commit 204f1f144c
2 changed files with 6 additions and 0 deletions

View File

@ -39,6 +39,9 @@
/* #define DEBUG_STREAMING */ /* #define DEBUG_STREAMING */
#ifdef ERROR
#undef ERROR
#endif
#define ERROR(a, b, c, d) #define ERROR(a, b, c, d)
#define ERROR5(a, b, c, d, e) #define ERROR5(a, b, c, d, e)

View File

@ -44,6 +44,9 @@
#define MAX_PUSH 10000000 #define MAX_PUSH 10000000
#ifdef ERROR
#undef ERROR
#endif
#define ERROR(str) \ #define ERROR(str) \
ctxt->error = XML_REGEXP_COMPILE_ERROR; \ ctxt->error = XML_REGEXP_COMPILE_ERROR; \
xmlRegexpErrCompile(ctxt, str); xmlRegexpErrCompile(ctxt, str);