Re: Fixes for compilation failures with -Werror=format-security and disabled nls

2025-05-31 Thread Collin Funk
Hi Bruno, Bruno Haible via Gnulib discussion list writes: > /usr/include/libintl.h:54:14: note: previous declaration of ‘dcgettext’ with > type ‘char *(const char *, const char *, int)’ >54 | extern char *dcgettext(const char *, const char *, int); > | ^ > *** Err

stat-time: Fix syntax errors in C++ mode on MSVC

2025-05-31 Thread Bruno Haible via Gnulib discussion list
Like all other Gnulib header files, stat-time.h is supposed to be usable in C++ mode. But it isn't: there are compilation errors on MSVC: ../../gltests/../gllib\stat-time.h(127): error C2059: syntax error: '.' ../../gltests/../gllib\stat-time.h(139): error C2059: syntax error: '.' ../../gltests/..

Re: Fixes for compilation failures with -Werror=format-security and disabled nls

2025-05-31 Thread Bruno Haible via Gnulib discussion list
I wrote: > 2025-05-28 Bruno Haible > > gettext-h: Avoid gcc -Wformat-security warnings with --disable-nls. Oops, this causes compilation errors on Solaris 11: In file included from ../../gltests/xalloc-die.c:28: ../../gltests/gettext.h:69:1: error: conflicting types for ‘gettext’; have

Re: AC_CHECK_DECL has wrong results on macOS

2025-05-31 Thread Bruno Haible via Gnulib discussion list
Paul Eggert wrote in . > Two questions about this patch installed a couple days ago > . > > Should Gnulib's gl_CHECK_FUNC