]> Savannah Git Hosting - gnulib.git/commitdiff
localename tests: Work around a Haiku bug.
authorBruno Haible <bruno@clisp.org>
Wed, 5 Apr 2023 13:17:27 +0000 (15:17 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 5 Apr 2023 13:17:27 +0000 (15:17 +0200)
* tests/test-localename.c (freelocale): New macro.

ChangeLog
tests/test-localename.c

index c629b253f5b107c17ad1be6494945ef3f97fed1d..1911c0b28621708b5f0e4701d62e666195cec2e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-04-05  Bruno Haible  <bruno@clisp.org>
+
+       localename tests: Work around a Haiku bug.
+       * tests/test-localename.c (freelocale): New macro.
+
 2023-04-05  Bruno Haible  <bruno@clisp.org>
 
        localename: Add support for Haiku's per-thread locales.
index 21b12e8b2ebbb62a579404e58fadcea9a92f391d..d56d14ed0a808137a569749ff81cca9fae7a7e49 100644 (file)
 # define HAVE_GOOD_USELOCALE 1
 #endif
 
+#ifdef __HAIKU__
+/* Work around Haiku bug <https://dev.haiku-os.org/ticket/18344>.  */
+# define freelocale(loc) ((void) (loc))
+#endif
+
 
 #if HAVE_GOOD_USELOCALE