From: Bruno Haible Date: Fri, 14 Feb 2025 08:42:18 +0000 (+0100) Subject: freelocale: Allow non-POSIX prototype on macOS. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdab58624ce4a6d405fd534bd022045b91421951;p=thirdparty%2Fgnulib.git freelocale: Allow non-POSIX prototype on macOS. * tests/test-freelocale.c: Skip the signature check on macOS. * doc/posix-functions/freelocale.texi: Mention the macOS problem. --- diff --git a/ChangeLog b/ChangeLog index 3d8d3bb3f0..56a0f20744 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-02-14 Bruno Haible + + freelocale: Allow non-POSIX prototype on macOS. + * tests/test-freelocale.c: Skip the signature check on macOS. + * doc/posix-functions/freelocale.texi: Mention the macOS problem. + 2025-02-14 Bruno Haible newlocale: Work around NetBSD bug. diff --git a/doc/posix-functions/freelocale.texi b/doc/posix-functions/freelocale.texi index 1167f002fb..21134adc78 100644 --- a/doc/posix-functions/freelocale.texi +++ b/doc/posix-functions/freelocale.texi @@ -21,6 +21,8 @@ z/OS. Portability problems not fixed by Gnulib: @itemize @item +This function's return type is @code{int} instead of @code{void} on macOS. +@item This function may cause crashes in subsequent @code{newlocale} invocations on some platforms: @c https://dev.haiku-os.org/ticket/18344 diff --git a/tests/test-freelocale.c b/tests/test-freelocale.c index 65c70b1ea1..d056866b1d 100644 --- a/tests/test-freelocale.c +++ b/tests/test-freelocale.c @@ -21,7 +21,9 @@ #include #include "signature.h" +#if !(defined __APPLE__ && defined __MACH__) SIGNATURE_CHECK (freelocale, void, (locale_t)); +#endif #include "macros.h"