* lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
'_Noreturn'.
* lib/sigpipe-die.h (sigpipe_die): Likewise.
+2020-02-02 Bruno Haible <bruno@clisp.org>
+
+ xalloc: Fix compilation error in C++ mode on FreeBSD 12.
+ * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
+ '_Noreturn'.
+ * lib/sigpipe-die.h (sigpipe_die): Likewise.
+
2020-02-02 Pádraig Brady <P@draigBrady.com>
read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
/* Emit an error message indicating a SIGPIPE signal, and terminate the
process with an error code. */
-extern _Noreturn void sigpipe_die (void);
+/*extern*/ _Noreturn void sigpipe_die (void);
/* Install a SIGPIPE handler that invokes PREPARE_DIE and then emits an
error message and exits. PREPARE_DIE may be NULL, meaning a no-op. */
or by using gnulib's xalloc-die module. This is the
function to call when one wants the program to die because of a
memory allocation failure. */
-extern _Noreturn void xalloc_die (void);
+/*extern*/ _Noreturn void xalloc_die (void);
void *xmalloc (size_t s)
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_ALLOC_SIZE ((1));