* lib/realloc.c (_GL_USE_STDLIB_ALLOC):
New macro, which we can use now that we don’t use malloc.
(realloc): Do not undef; no longer needed.
2024-11-04 Paul Eggert <eggert@cs.ucla.edu>
+ realloc-posix: use _GL_USE_STDLIB_ALLOC
+ * lib/realloc.c (_GL_USE_STDLIB_ALLOC):
+ New macro, which we can use now that we don’t use malloc.
+ (realloc): Do not undef; no longer needed.
+
stdlib: make MB_CUR_MAX usable from extern inline
* lib/stdlib.c: New file.
* modules/stdlib (Files, lib_SOURCES): Add it.
/* written by Jim Meyering and Bruno Haible */
+#define _GL_USE_STDLIB_ALLOC 1
#include <config.h>
#include <stdlib.h>
# include <cheri.h>
#endif
-/* Call the system's realloc below. This file does not define
- _GL_USE_STDLIB_ALLOC because it needs Gnulib's malloc if present. */
-#undef realloc
-
/* Change the size of an allocated block of memory P to N bytes,
with error checking. If P is NULL, use malloc. Otherwise if N is zero,
free P and return NULL. */