summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-05-12 10:54:10 +0000
committerEli Zaretskii <eliz@gnu.org>2001-05-12 10:54:10 +0000
commit7689ef0b8aee766803f57ea3869fe62e6075ffe5 (patch)
treeee325932e0f816be5a4d1cf5f39e2ab068e72441 /src/regex.c
parente7c15bba659f0cad28b72114b1c77225fff36b25 (diff)
downloademacs-7689ef0b8aee766803f57ea3869fe62e6075ffe5.tar.gz
(malloc, realloc, free) [emacs]: Undefine before
redefining, to avoid compiler warnings.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/regex.c b/src/regex.c
index b3d0658c7dc..9fe099c7125 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -124,8 +124,17 @@
# include "charset.h"
# include "category.h"
+# ifdef malloc
+# undef malloc
+# endif
# define malloc xmalloc
+# ifdef realloc
+# undef realloc
+# endif
# define realloc xrealloc
+# ifdef free
+# undef free
+# endif
# define free xfree
/* Converts the pointer to the char to BEG-based offset from the start. */