summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex.c b/src/regex.c
index 5a98c6c21aa..3581b38dbd3 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -183,7 +183,7 @@ init_syntax_once ()
#define ISXDIGIT(c) (ISASCII (c) && isxdigit (c))
#ifndef NULL
-#define NULL 0
+#define NULL (void *)0
#endif
/* We remove any previous definition of `SIGN_EXTEND_CHAR',