]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
malloc, realloc: fix recently-introduced #undef typos
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 17 Apr 2021 00:06:21 +0000 (17:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 17 Apr 2021 00:07:29 +0000 (17:07 -0700)
* lib/malloc.c (malloc):
* lib/realloc.c (malloc, realloc): #undef before using.

ChangeLog
lib/malloc.c
lib/realloc.c

index 7c519ee44ea0027841d34a0c041a3880e0b07b48..3207c22cf5504079d76ea971750c57a2b9f828e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-04-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       malloc, realloc: fix recently-introduced #undef typos
+       * lib/malloc.c (malloc):
+       * lib/realloc.c (malloc, realloc): #undef before using.
+
 2021-04-14  Bruno Haible  <bruno@clisp.org>
 
        hamt tests: Fix link error.
index 7b5ae9589db3aa4fa6bd12eddc6016fe8448c685..272b8b9f447b79c29d44d3a11a0c7e0eb81dfbc9 100644 (file)
@@ -33,6 +33,9 @@
 
 # include <errno.h>
 
+/* Call the system's malloc below.  */
+# undef malloc
+
 /* Allocate an N-byte block of memory from the heap.
    If N is zero, allocate a 1-byte block.  */
 
index 3bf1bea2d9c4eae75e49813a25ee9f645a51420f..c3e3cdfc55422acf9c2dc15619d21dc615e8738c 100644 (file)
 
 # 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.  */