diff options
author | Bruno Haible <bruno@clisp.org> | 2007-09-09 17:38:23 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-09-09 17:38:23 +0000 |
commit | 3ba9dca25043b6cb2ba35c63e3b55c7a1993bf8c (patch) | |
tree | d8dfd3a2afea51f706886b95586934313620f99c /lib | |
parent | 212d9536fe505a78d865bb09b7ef4b1ab3cff38b (diff) | |
download | gnulib-3ba9dca25043b6cb2ba35c63e3b55c7a1993bf8c.tar.gz |
Oops, avoid an infinite recursion.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/calloc.c | 3 | ||||
-rw-r--r-- | lib/malloc.c | 3 | ||||
-rw-r--r-- | lib/realloc.c | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/lib/calloc.c b/lib/calloc.c index 0b92d2ffeb..72045dbf16 100644 --- a/lib/calloc.c +++ b/lib/calloc.c @@ -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. */ diff --git a/lib/malloc.c b/lib/malloc.c index b6ecf37466..eba131d1f2 100644 --- a/lib/malloc.c +++ b/lib/malloc.c @@ -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. */ diff --git a/lib/realloc.c b/lib/realloc.c index a68f144bd3..b1c04508c8 100644 --- a/lib/realloc.c +++ b/lib/realloc.c @@ -30,6 +30,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. */ |