From: Bruno Haible Date: Wed, 5 Apr 2023 13:17:27 +0000 (+0200) Subject: localename tests: Work around a Haiku bug. X-Git-Tag: v1.0~1504 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=dddf540b4b41c0f4d73cbfa14b47d2551b79bffd;p=gnulib.git localename tests: Work around a Haiku bug. * tests/test-localename.c (freelocale): New macro. --- diff --git a/ChangeLog b/ChangeLog index c629b253f5..1911c0b286 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-04-05 Bruno Haible + + localename tests: Work around a Haiku bug. + * tests/test-localename.c (freelocale): New macro. + 2023-04-05 Bruno Haible localename: Add support for Haiku's per-thread locales. diff --git a/tests/test-localename.c b/tests/test-localename.c index 21b12e8b2e..d56d14ed0a 100644 --- a/tests/test-localename.c +++ b/tests/test-localename.c @@ -30,6 +30,11 @@ # define HAVE_GOOD_USELOCALE 1 #endif +#ifdef __HAIKU__ +/* Work around Haiku bug . */ +# define freelocale(loc) ((void) (loc)) +#endif + #if HAVE_GOOD_USELOCALE