]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
freelocale: Allow non-POSIX prototype on macOS.
authorBruno Haible <bruno@clisp.org>
Fri, 14 Feb 2025 08:42:18 +0000 (09:42 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 14 Feb 2025 14:43:39 +0000 (15:43 +0100)
* tests/test-freelocale.c: Skip the signature check on macOS.
* doc/posix-functions/freelocale.texi: Mention the macOS problem.

ChangeLog
doc/posix-functions/freelocale.texi
tests/test-freelocale.c

index 3d8d3bb3f04ef5d860c5bff31469cf56228567da..56a0f207447340c01264227a0385b89c3c1e6362 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-02-14  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        newlocale: Work around NetBSD bug.
index 1167f002fbdb4c9c2a675e095feb14d5dd2e036e..21134adc780bd2d921e321ffc2a25de345555943 100644 (file)
@@ -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
index 65c70b1ea12b494d39e2a4a5594cd7ca78a64da4..d056866b1d0a944b20cb94021eec7102923c2f06 100644 (file)
@@ -21,7 +21,9 @@
 #include <locale.h>
 
 #include "signature.h"
+#if !(defined __APPLE__ && defined __MACH__)
 SIGNATURE_CHECK (freelocale, void, (locale_t));
+#endif
 
 #include "macros.h"