* lib/stdlib.in.h (rpl_realloc): Ensure C linkage, not C++ linkage, in
C++ mode.
+2025-02-16 Bruno Haible <bruno@clisp.org>
+
+ realloc: Fix link error in C++ mode on CentOS 5 (regression 2024-11-04).
+ * lib/stdlib.in.h (rpl_realloc): Ensure C linkage, not C++ linkage, in
+ C++ mode.
+
2025-02-12 Bruno Haible <bruno@clisp.org>
setlocale: Update info about Galician and Tamil.
# if @REPLACE_REALLOC_FOR_REALLOC_POSIX@
# if @REPLACE_REALLOC_FOR_REALLOC_POSIX@ == 2
# define _GL_INLINE_RPL_REALLOC 1
+# ifdef __cplusplus
+extern "C" {
+# endif
_GL_REALLOC_INLINE void *
rpl_realloc (void *ptr, size_t size)
{
return realloc (ptr, size ? size : 1);
}
+# ifdef __cplusplus
+}
+# endif
# endif
# if !((defined __cplusplus && defined GNULIB_NAMESPACE) \
|| _GL_USE_STDLIB_ALLOC)