Oops, avoid an infinite recursion.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Sep 2007 17:38:23 +0000 (17:38 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Sep 2007 17:38:23 +0000 (17:38 +0000)
lib/calloc.c
lib/malloc.c
lib/realloc.c

index 0b92d2f..72045db 100644 (file)
@@ -30,6 +30,9 @@
 
 #include <errno.h>
 
+/* Call the system's calloc below.  */
+#undef calloc
+
 /* Allocate and zero-fill an NxS-byte block of memory from the heap.
    If N or S is zero, allocate and zero-fill a 1-byte block.  */
 
index b6ecf37..eba131d 100644 (file)
@@ -30,6 +30,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 a68f144..b1c0450 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.  */