[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hard-locale.c: SETLOCALE_NULL_MAX
From: |
Marc Nieper-Wißkirchen |
Subject: |
Re: hard-locale.c: SETLOCALE_NULL_MAX |
Date: |
Wed, 30 Sep 2020 17:07:28 +0200 |
PS It may also be due to a problem in my build system (I am using
non-recursive make) so that the system-wide locale.h is included and
not the Gnulib version...
Am Mi., 30. Sept. 2020 um 16:29 Uhr schrieb Marc Nieper-Wißkirchen
<marc.nieper+gnu@gmail.com>:
>
> It seems that I have stumbled across the same bug as reported here:
>
> https://bugs.gentoo.org/709732
>
> The compiler throws the following error at me:
>
> lib/hard-locale.c: In function 'hard_locale':
> lib/hard-locale.c:29:15: error: 'SETLOCALE_NULL_MAX' undeclared (first
> use in this function); did you mean 'SETLOCALE_NULL_ALL_MTSAFE'?
> 29 | char locale[SETLOCALE_NULL_MAX];
> | ^~~~~~~~~~~~~~~~~~
> | SETLOCALE_NULL_ALL_MTSAFE
> lib/hard-locale.c:29:15: note: each undeclared identifier is reported
> only once for each function it appears in
> lib/hard-locale.c:31:7: warning: implicit declaration of function
> 'setlocale_null_r' [-Wimplicit-function-declaration]
> 31 | if (setlocale_null_r (category, locale, sizeof (locale)))
> | ^~~~~~~~~~~~~~~~
>
> Is there a quick fix possible?
>
> Thanks,
>
> Marc