summaryrefslogtreecommitdiff
path: root/lib/calloc.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-04-11 22:00:25 +0200
committerBruno Haible <bruno@clisp.org>2021-04-11 22:00:25 +0200
commit2a597a7ae16fb988daa473f8df2468d7188c118a (patch)
treeafeaed06da94200ec34a962aa167688db1e1c013 /lib/calloc.c
parent80a344e3237b878734295cbe696b7f1e4a8541f0 (diff)
downloadgnulib-2a597a7ae16fb988daa473f8df2468d7188c118a.tar.gz
malloc, realloc, calloc: Support restricted library symbols on AIX.
Suggested by Paul Eggert in <https://lists.gnu.org/archive/html/bug-gnulib/2021-04/msg00119.html>. * lib/malloc.c: Drop the code that intends to collaborate with AC_FUNC_MALLOC. * lib/realloc.c: Drop the code that intends to collaborate with AC_FUNC_REALLOC. * lib/calloc.c: Drop the code that intends to collaborate with the nonexistent macro AC_FUNC_CALLOC.
Diffstat (limited to 'lib/calloc.c')
-rw-r--r--lib/calloc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/calloc.c b/lib/calloc.c
index 167fdd4869..5ab1975cfd 100644
--- a/lib/calloc.c
+++ b/lib/calloc.c
@@ -18,12 +18,9 @@
/* written by Jim Meyering and Bruno Haible */
#include <config.h>
-/* Only the AC_FUNC_CALLOC macro defines 'calloc' already in config.h. */
-#ifdef calloc
-# define NEED_CALLOC_GNU 1
-# undef calloc
-/* Whereas the gnulib module 'calloc-gnu' defines HAVE_CALLOC_GNU. */
-#elif GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU
+
+/* The gnulib module 'calloc-gnu' defines HAVE_CALLOC_GNU. */
+#if GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU
# define NEED_CALLOC_GNU 1
#endif