From b03fe9f5ae89fb104b2079a0471114724f68292c Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 12 May 2001 10:52:38 +0000 Subject: [PATCH] (malloc, realloc, free) [emacs]: Undefine before redefining, to avoid compiler warnings. --- regex.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/regex.c b/regex.c index b3d0658c7d..9fe099c712 100644 --- 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. */ -- 2.30.2