diff options
Diffstat (limited to 'gl/langinfo.in.h')
| -rw-r--r-- | gl/langinfo.in.h | 56 |
1 files changed, 53 insertions, 3 deletions
diff --git a/gl/langinfo.in.h b/gl/langinfo.in.h index c7555a6a..e16c95b3 100644 --- a/gl/langinfo.in.h +++ b/gl/langinfo.in.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Substitute for and wrapper around <langinfo.h>. | 1 | /* Substitute for and wrapper around <langinfo.h>. |
| 2 | Copyright (C) 2009-2023 Free Software Foundation, Inc. | 2 | Copyright (C) 2009-2025 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 |
| @@ -34,6 +34,11 @@ | |||
| 34 | #ifndef _@GUARD_PREFIX@_LANGINFO_H | 34 | #ifndef _@GUARD_PREFIX@_LANGINFO_H |
| 35 | #define _@GUARD_PREFIX@_LANGINFO_H | 35 | #define _@GUARD_PREFIX@_LANGINFO_H |
| 36 | 36 | ||
| 37 | /* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*. */ | ||
| 38 | #if !_GL_CONFIG_H_INCLUDED | ||
| 39 | #error "Please include config.h first." | ||
| 40 | #endif | ||
| 41 | |||
| 37 | 42 | ||
| 38 | #if !@HAVE_LANGINFO_H@ | 43 | #if !@HAVE_LANGINFO_H@ |
| 39 | 44 | ||
| @@ -110,6 +115,18 @@ typedef int nl_item; | |||
| 110 | # define ABMON_10 (ABMON_1 + 9) | 115 | # define ABMON_10 (ABMON_1 + 9) |
| 111 | # define ABMON_11 (ABMON_1 + 10) | 116 | # define ABMON_11 (ABMON_1 + 10) |
| 112 | # define ABMON_12 (ABMON_1 + 11) | 117 | # define ABMON_12 (ABMON_1 + 11) |
| 118 | # define ABALTMON_1 10220 | ||
| 119 | # define ABALTMON_2 (ABALTMON_1 + 1) | ||
| 120 | # define ABALTMON_3 (ABALTMON_1 + 2) | ||
| 121 | # define ABALTMON_4 (ABALTMON_1 + 3) | ||
| 122 | # define ABALTMON_5 (ABALTMON_1 + 4) | ||
| 123 | # define ABALTMON_6 (ABALTMON_1 + 5) | ||
| 124 | # define ABALTMON_7 (ABALTMON_1 + 6) | ||
| 125 | # define ABALTMON_8 (ABALTMON_1 + 7) | ||
| 126 | # define ABALTMON_9 (ABALTMON_1 + 8) | ||
| 127 | # define ABALTMON_10 (ABALTMON_1 + 9) | ||
| 128 | # define ABALTMON_11 (ABALTMON_1 + 10) | ||
| 129 | # define ABALTMON_12 (ABALTMON_1 + 11) | ||
| 113 | # define ERA 10047 | 130 | # define ERA 10047 |
| 114 | # define ERA_D_FMT 10048 | 131 | # define ERA_D_FMT 10048 |
| 115 | # define ERA_D_T_FMT 10049 | 132 | # define ERA_D_T_FMT 10049 |
| @@ -166,6 +183,37 @@ typedef int nl_item; | |||
| 166 | # define GNULIB_defined_ALTMON 1 | 183 | # define GNULIB_defined_ALTMON 1 |
| 167 | # endif | 184 | # endif |
| 168 | 185 | ||
| 186 | # if !@HAVE_LANGINFO_ABALTMON@ | ||
| 187 | # if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 27 | ||
| 188 | # define ABALTMON_1 _NL_ABALTMON_1 | ||
| 189 | # define ABALTMON_2 _NL_ABALTMON_2 | ||
| 190 | # define ABALTMON_3 _NL_ABALTMON_3 | ||
| 191 | # define ABALTMON_4 _NL_ABALTMON_4 | ||
| 192 | # define ABALTMON_5 _NL_ABALTMON_5 | ||
| 193 | # define ABALTMON_6 _NL_ABALTMON_6 | ||
| 194 | # define ABALTMON_7 _NL_ABALTMON_7 | ||
| 195 | # define ABALTMON_8 _NL_ABALTMON_8 | ||
| 196 | # define ABALTMON_9 _NL_ABALTMON_9 | ||
| 197 | # define ABALTMON_10 _NL_ABALTMON_10 | ||
| 198 | # define ABALTMON_11 _NL_ABALTMON_11 | ||
| 199 | # define ABALTMON_12 _NL_ABALTMON_12 | ||
| 200 | # else | ||
| 201 | # define ABALTMON_1 10220 | ||
| 202 | # define ABALTMON_2 (ABALTMON_1 + 1) | ||
| 203 | # define ABALTMON_3 (ABALTMON_1 + 2) | ||
| 204 | # define ABALTMON_4 (ABALTMON_1 + 3) | ||
| 205 | # define ABALTMON_5 (ABALTMON_1 + 4) | ||
| 206 | # define ABALTMON_6 (ABALTMON_1 + 5) | ||
| 207 | # define ABALTMON_7 (ABALTMON_1 + 6) | ||
| 208 | # define ABALTMON_8 (ABALTMON_1 + 7) | ||
| 209 | # define ABALTMON_9 (ABALTMON_1 + 8) | ||
| 210 | # define ABALTMON_10 (ABALTMON_1 + 9) | ||
| 211 | # define ABALTMON_11 (ABALTMON_1 + 10) | ||
| 212 | # define ABALTMON_12 (ABALTMON_1 + 11) | ||
| 213 | # define GNULIB_defined_ABALTMON 1 | ||
| 214 | # endif | ||
| 215 | # endif | ||
| 216 | |||
| 169 | # if !@HAVE_LANGINFO_ERA@ | 217 | # if !@HAVE_LANGINFO_ERA@ |
| 170 | # define ERA 10047 | 218 | # define ERA 10047 |
| 171 | # define ERA_D_FMT 10048 | 219 | # define ERA_D_FMT 10048 |
| @@ -200,15 +248,17 @@ typedef int nl_item; | |||
| 200 | # undef nl_langinfo | 248 | # undef nl_langinfo |
| 201 | # define nl_langinfo rpl_nl_langinfo | 249 | # define nl_langinfo rpl_nl_langinfo |
| 202 | # endif | 250 | # endif |
| 203 | _GL_FUNCDECL_RPL (nl_langinfo, char *, (nl_item item)); | 251 | _GL_FUNCDECL_RPL (nl_langinfo, char *, (nl_item item), ); |
| 204 | _GL_CXXALIAS_RPL (nl_langinfo, char *, (nl_item item)); | 252 | _GL_CXXALIAS_RPL (nl_langinfo, char *, (nl_item item)); |
| 205 | # else | 253 | # else |
| 206 | # if !@HAVE_NL_LANGINFO@ | 254 | # if !@HAVE_NL_LANGINFO@ |
| 207 | _GL_FUNCDECL_SYS (nl_langinfo, char *, (nl_item item)); | 255 | _GL_FUNCDECL_SYS (nl_langinfo, char *, (nl_item item), ); |
| 208 | # endif | 256 | # endif |
| 209 | _GL_CXXALIAS_SYS (nl_langinfo, char *, (nl_item item)); | 257 | _GL_CXXALIAS_SYS (nl_langinfo, char *, (nl_item item)); |
| 210 | # endif | 258 | # endif |
| 259 | # if __GLIBC__ >= 2 | ||
| 211 | _GL_CXXALIASWARN (nl_langinfo); | 260 | _GL_CXXALIASWARN (nl_langinfo); |
| 261 | # endif | ||
| 212 | #elif defined GNULIB_POSIXCHECK | 262 | #elif defined GNULIB_POSIXCHECK |
| 213 | # undef nl_langinfo | 263 | # undef nl_langinfo |
| 214 | # if HAVE_RAW_DECL_NL_LANGINFO | 264 | # if HAVE_RAW_DECL_NL_LANGINFO |
