From: Eli Zaretskii Date: Sat, 12 May 2001 10:52:38 +0000 (+0000) Subject: (malloc, realloc, free) [emacs]: Undefine before X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b03fe9f5ae89fb104b2079a0471114724f68292c;p=pspp (malloc, realloc, free) [emacs]: Undefine before redefining, to avoid compiler warnings. --- 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. */