summaryrefslogtreecommitdiff
path: root/lib/realloc.c
diff options
context:
space:
mode:
authorBruce Korb <bkorb@gnu.org>2011-05-06 08:15:59 -0700
committerBruce Korb <bkorb@gnu.org>2011-05-06 08:15:59 -0700
commit10c1e9dc30730133dbb631c9be0a4e84ce0b0eaa (patch)
treec1ecc41b19fbec4e92c119d5cba945b8b91ac7d7 /lib/realloc.c
parent9bccf2c3e4f68a37499615fddd51c727d6bb2624 (diff)
parentd801cb77b966678e21af7a106b15a3fe598d5ec4 (diff)
downloadgnulib-topic/libposix.tar.gz
manual mergetopic/libposix
Diffstat (limited to 'lib/realloc.c')
-rw-r--r--lib/realloc.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/realloc.c b/lib/realloc.c
index 6ef37e794f..0c96ffacba 100644
--- a/lib/realloc.c
+++ b/lib/realloc.c
@@ -18,6 +18,7 @@
/* written by Jim Meyering and Bruno Haible */
+#define _GL_USE_STDLIB_ALLOC 1
#include <config.h>
/* Only the AC_FUNC_REALLOC macro defines 'realloc' already in config.h. */
@@ -34,23 +35,10 @@
# define SYSTEM_MALLOC_GLIBC_COMPATIBLE 1
#endif
-/* Below we want to call the system's malloc and realloc.
- Undefine the symbols here so that including <stdlib.h> provides a
- declaration of malloc(), not of rpl_malloc(), and likewise for realloc. */
-#undef malloc
-#undef realloc
-
-/* Specification. */
#include <stdlib.h>
#include <errno.h>
-/* Below we want to call the system's malloc and realloc.
- Undefine the symbols, if they were defined by gnulib's <stdlib.h>
- replacement. */
-#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. */