* lib/stdlib.in.h (calloc): Consider _GL_USE_STDLIB_ALLOC.
* lib/calloc.c: Define _GL_USE_STDLIB_ALLOC. Don't undefine calloc.
* lib/malloc.c: Add comment.
* lib/realloc.c: Likewise.
+2024-11-16 Bruno Haible <bruno@clisp.org>
+
+ calloc-gnu: Fix bug on 32-bit AIX (regression 2024-11-04).
+ * lib/stdlib.in.h (calloc): Consider _GL_USE_STDLIB_ALLOC.
+ * lib/calloc.c: Define _GL_USE_STDLIB_ALLOC. Don't undefine calloc.
+ * lib/malloc.c: Add comment.
+ * lib/realloc.c: Likewise.
+
2024-11-14 Paul Eggert <eggert@cs.ucla.edu>
mktime: don’t consult daylight
/* written by Jim Meyering and Bruno Haible */
+/* Ensure that we call the system's calloc() below. */
+#define _GL_USE_STDLIB_ALLOC 1
#include <config.h>
/* Specification. */
#include <errno.h>
#include <stdckdint.h>
-/* Call the system's calloc below. */
-#undef calloc
-
/* Allocate and zero-fill an NxS-byte block of memory from the heap,
even if N or S is zero. */
/* written by Jim Meyering and Bruno Haible */
+/* Ensure that we call the system's malloc() below. */
#define _GL_USE_STDLIB_ALLOC 1
#include <config.h>
/* written by Jim Meyering and Bruno Haible */
+/* Ensure that we call the system's realloc() below. */
#define _GL_USE_STDLIB_ALLOC 1
#include <config.h>
#if @GNULIB_CALLOC_POSIX@
# if @REPLACE_CALLOC_FOR_CALLOC_POSIX@ \
|| (@GNULIB_CALLOC_GNU@ && @REPLACE_CALLOC_FOR_CALLOC_GNU@)
-# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+# if !((defined __cplusplus && defined GNULIB_NAMESPACE) \
+ || _GL_USE_STDLIB_ALLOC)
# undef calloc
# define calloc rpl_calloc
# endif