summaryrefslogtreecommitdiff
path: root/gl/realloc.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-05-20 12:50:01 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-05-20 12:50:01 +0200
commit5854b4c2557dcb75c6263df32932047688d5c64b (patch)
tree6ec061b102f5811c02e2472310dac347c7fb9f9f /gl/realloc.c
parentf9f404609cd03181eb88cb7d0280b2016c9a8e67 (diff)
downloadgnutls-5854b4c2557dcb75c6263df32932047688d5c64b.tar.gz
Added new gnulib and error.h.
Diffstat (limited to 'gl/realloc.c')
-rw-r--r--gl/realloc.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/gl/realloc.c b/gl/realloc.c
index 6ef37e794f..0c96ffacba 100644
--- a/gl/realloc.c
+++ b/gl/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. */