diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-08 11:39:01 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-08 13:31:44 -0700 |
commit | 003d30375c85c07eb8fc0ad805cf0a0cb146265e (patch) | |
tree | 1f94529602e43d7fa23d88439ed1ea4adc03c199 /lib/realloc.c | |
parent | 0c3b4815cbce7a83b85473f1718cab6049cbffb4 (diff) | |
download | gnulib-003d30375c85c07eb8fc0ad805cf0a0cb146265e.tar.gz |
* lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
Diffstat (limited to 'lib/realloc.c')
-rw-r--r-- | lib/realloc.c | 14 |
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. */ |