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 0b92d2ffeb2ed00f432d7d9f65dd8a88ac652e11..72045dbf16daa02def84336a46d251cea673afc6 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 b6ecf37466722f08f2680fc9d2e3a9d8ef3e8721..eba131d1f273049bbc0f3137ff48f193dee686e1 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 a68f144bd36c634c561225ba7aa96af2b7bb2ec4..b1c04508c82fff6c939f724f4b64432227165260 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.  */