aboutsummaryrefslogtreecommitdiff
path: root/regex/regex.h
diff options
context:
space:
mode:
Diffstat (limited to 'regex/regex.h')
-rw-r--r--regex/regex.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/regex/regex.h b/regex/regex.h
index 20ea7865c0a0..7d788514a54c 100644
--- a/regex/regex.h
+++ b/regex/regex.h
@@ -96,6 +96,16 @@ typedef struct {
#define REG_LARGE 01000 /* force large representation */
#define REG_BACKR 02000 /* force use of backref code */
+#ifdef USE_WIDECHAR
+/*
+ * Avoid function name conflicts with the system regex functions.
+ * This is needed e.g. to build with AddressSanitizer.
+ */
+#define regcomp nvi_regcomp
+#define regerror nvi_regerror
+#define regexec nvi_regexec
+#define regfree nvi_regfree
+#endif
int regcomp(regex_t *, const RCHAR_T *, int);
size_t regerror(int, const regex_t *, char *, size_t);
int regexec(const regex_t *,