changeset 3238:94b544bcb2c4

(malloc, realloc, free) [emacs]: Undefine before redefining, to avoid compiler warnings.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 12 May 2001 10:52:38 +0000
parents 17796f8ff7e8
children 8146aedc0fe9
files regex.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/regex.c
+++ b/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.	 */