diff options
Diffstat (limited to 'gl/locale.in.h')
-rw-r--r-- | gl/locale.in.h | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/gl/locale.in.h b/gl/locale.in.h index 538b834..1b11a41 100644 --- a/gl/locale.in.h +++ b/gl/locale.in.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* A POSIX <locale.h>. | 1 | /* A POSIX <locale.h>. |
2 | Copyright (C) 2007-2023 Free Software Foundation, Inc. | 2 | Copyright (C) 2007-2024 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This file is free software: you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
5 | it under the terms of the GNU Lesser General Public License as | 5 | it under the terms of the GNU Lesser General Public License as |
@@ -44,6 +44,11 @@ | |||
44 | #ifndef _@GUARD_PREFIX@_LOCALE_H | 44 | #ifndef _@GUARD_PREFIX@_LOCALE_H |
45 | #define _@GUARD_PREFIX@_LOCALE_H | 45 | #define _@GUARD_PREFIX@_LOCALE_H |
46 | 46 | ||
47 | /* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*. */ | ||
48 | #if !_GL_CONFIG_H_INCLUDED | ||
49 | #error "Please include config.h first." | ||
50 | #endif | ||
51 | |||
47 | /* NetBSD 5.0 mis-defines NULL. */ | 52 | /* NetBSD 5.0 mis-defines NULL. */ |
48 | #include <stddef.h> | 53 | #include <stddef.h> |
49 | 54 | ||
@@ -211,7 +216,7 @@ _GL_WARN_ON_USE (setlocale, "setlocale works differently on native Windows - " | |||
211 | # include "setlocale_null.h" | 216 | # include "setlocale_null.h" |
212 | #endif | 217 | #endif |
213 | 218 | ||
214 | #if /*@GNULIB_NEWLOCALE@ ||*/ (@GNULIB_LOCALENAME@ && @LOCALENAME_ENHANCE_LOCALE_FUNCS@ && @HAVE_NEWLOCALE@) | 219 | #if /*@GNULIB_NEWLOCALE@ ||*/ (@GNULIB_LOCALENAME_UNSAFE@ && @LOCALENAME_ENHANCE_LOCALE_FUNCS@ && @HAVE_NEWLOCALE@) |
215 | # if @REPLACE_NEWLOCALE@ | 220 | # if @REPLACE_NEWLOCALE@ |
216 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 221 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
217 | # undef newlocale | 222 | # undef newlocale |
@@ -229,7 +234,7 @@ _GL_CXXALIAS_SYS (newlocale, locale_t, | |||
229 | (int category_mask, const char *name, locale_t base)); | 234 | (int category_mask, const char *name, locale_t base)); |
230 | # endif | 235 | # endif |
231 | # endif | 236 | # endif |
232 | # if @HAVE_NEWLOCALE@ | 237 | # if __GLIBC__ >= 2 && @HAVE_NEWLOCALE@ |
233 | _GL_CXXALIASWARN (newlocale); | 238 | _GL_CXXALIASWARN (newlocale); |
234 | # endif | 239 | # endif |
235 | # if @HAVE_NEWLOCALE@ || @REPLACE_NEWLOCALE@ | 240 | # if @HAVE_NEWLOCALE@ || @REPLACE_NEWLOCALE@ |
@@ -244,24 +249,24 @@ _GL_WARN_ON_USE (newlocale, "newlocale is not portable"); | |||
244 | # endif | 249 | # endif |
245 | #endif | 250 | #endif |
246 | 251 | ||
247 | #if @GNULIB_DUPLOCALE@ || (@GNULIB_LOCALENAME@ && @LOCALENAME_ENHANCE_LOCALE_FUNCS@ && @HAVE_DUPLOCALE@) | 252 | #if @GNULIB_DUPLOCALE@ || (@GNULIB_LOCALENAME_UNSAFE@ && @LOCALENAME_ENHANCE_LOCALE_FUNCS@ && @HAVE_DUPLOCALE@) |
248 | # if @REPLACE_DUPLOCALE@ | 253 | # if @HAVE_DUPLOCALE@ /* locale_t may be undefined if !@HAVE_DUPLOCALE@. */ |
249 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 254 | # if @REPLACE_DUPLOCALE@ |
250 | # undef duplocale | 255 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
251 | # define duplocale rpl_duplocale | 256 | # undef duplocale |
252 | # define GNULIB_defined_duplocale 1 | 257 | # define duplocale rpl_duplocale |
253 | # endif | 258 | # define GNULIB_defined_duplocale 1 |
259 | # endif | ||
254 | _GL_FUNCDECL_RPL (duplocale, locale_t, (locale_t locale) _GL_ARG_NONNULL ((1))); | 260 | _GL_FUNCDECL_RPL (duplocale, locale_t, (locale_t locale) _GL_ARG_NONNULL ((1))); |
255 | _GL_CXXALIAS_RPL (duplocale, locale_t, (locale_t locale)); | 261 | _GL_CXXALIAS_RPL (duplocale, locale_t, (locale_t locale)); |
256 | # else | 262 | # else |
257 | # if @HAVE_DUPLOCALE@ | ||
258 | _GL_CXXALIAS_SYS (duplocale, locale_t, (locale_t locale)); | 263 | _GL_CXXALIAS_SYS (duplocale, locale_t, (locale_t locale)); |
259 | # endif | 264 | # endif |
260 | # endif | 265 | # endif |
261 | # if @HAVE_DUPLOCALE@ | 266 | # if __GLIBC__ >= 2 && @HAVE_DUPLOCALE@ |
262 | _GL_CXXALIASWARN (duplocale); | 267 | _GL_CXXALIASWARN (duplocale); |
263 | # endif | 268 | # endif |
264 | # if @HAVE_DUPLOCALE@ || @REPLACE_DUPLOCALE@ | 269 | # if @HAVE_DUPLOCALE@ |
265 | # ifndef HAVE_WORKING_DUPLOCALE | 270 | # ifndef HAVE_WORKING_DUPLOCALE |
266 | # define HAVE_WORKING_DUPLOCALE 1 | 271 | # define HAVE_WORKING_DUPLOCALE 1 |
267 | # endif | 272 | # endif |
@@ -274,7 +279,7 @@ _GL_WARN_ON_USE (duplocale, "duplocale is buggy on some glibc systems - " | |||
274 | # endif | 279 | # endif |
275 | #endif | 280 | #endif |
276 | 281 | ||
277 | #if /*@GNULIB_FREELOCALE@ ||*/ (@GNULIB_LOCALENAME@ && @LOCALENAME_ENHANCE_LOCALE_FUNCS@ && @HAVE_FREELOCALE@) | 282 | #if /*@GNULIB_FREELOCALE@ ||*/ (@GNULIB_LOCALENAME_UNSAFE@ && @LOCALENAME_ENHANCE_LOCALE_FUNCS@ && @HAVE_FREELOCALE@) |
278 | # if @REPLACE_FREELOCALE@ | 283 | # if @REPLACE_FREELOCALE@ |
279 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 284 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
280 | # undef freelocale | 285 | # undef freelocale |
@@ -290,7 +295,7 @@ _GL_CXXALIAS_RPL (freelocale, void, (locale_t locale)); | |||
290 | _GL_CXXALIAS_SYS_CAST (freelocale, void, (locale_t locale)); | 295 | _GL_CXXALIAS_SYS_CAST (freelocale, void, (locale_t locale)); |
291 | # endif | 296 | # endif |
292 | # endif | 297 | # endif |
293 | # if @HAVE_FREELOCALE@ | 298 | # if __GLIBC__ >= 2 && @HAVE_FREELOCALE@ |
294 | _GL_CXXALIASWARN (freelocale); | 299 | _GL_CXXALIASWARN (freelocale); |
295 | # endif | 300 | # endif |
296 | #elif defined GNULIB_POSIXCHECK | 301 | #elif defined GNULIB_POSIXCHECK |