changeset 37705:a8725acacca5

(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 58a87f412ddf
children 3cd95315d9a7
files src/regex.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Sat May 12 10:51:09 2001 +0000
+++ b/src/regex.c	Sat May 12 10:52:38 2001 +0000
@@ -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.	 */