summaryrefslogtreecommitdiff
path: root/lib/realloc.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-04-16 17:06:21 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-04-16 17:07:29 -0700
commit6664b43d03eb5acf0ac25c5570be6b8ecdd2ebde (patch)
tree12aa42aac30933095913278ff718860a0f1fff83 /lib/realloc.c
parent9ca3600636304e6ff644a51a0f606a2ef3509920 (diff)
downloadgnulib-6664b43d03eb5acf0ac25c5570be6b8ecdd2ebde.tar.gz
malloc, realloc: fix recently-introduced #undef typos
* lib/malloc.c (malloc): * lib/realloc.c (malloc, realloc): #undef before using.
Diffstat (limited to 'lib/realloc.c')
-rw-r--r--lib/realloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/realloc.c b/lib/realloc.c
index 3bf1bea2d9..c3e3cdfc55 100644
--- a/lib/realloc.c
+++ b/lib/realloc.c
@@ -40,6 +40,10 @@
# include <errno.h>
+/* Call the system's malloc and realloc below. */
+# undef malloc
+# undef realloc
+
/* Change the size of an allocated block of memory P to N bytes,
with error checking. If N is zero, change it to 1. If P is NULL,
use malloc. */