diff options
Diffstat (limited to 'gl/langinfo.in.h')
| -rw-r--r-- | gl/langinfo.in.h | 61 |
1 files changed, 46 insertions, 15 deletions
diff --git a/gl/langinfo.in.h b/gl/langinfo.in.h index febbd25f..4b3f9b5b 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-2024 Free Software Foundation, Inc. | 2 | Copyright (C) 2009-2026 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 |
| @@ -115,6 +115,18 @@ typedef int nl_item; | |||
| 115 | # define ABMON_10 (ABMON_1 + 9) | 115 | # define ABMON_10 (ABMON_1 + 9) |
| 116 | # define ABMON_11 (ABMON_1 + 10) | 116 | # define ABMON_11 (ABMON_1 + 10) |
| 117 | # 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) | ||
| 118 | # define ERA 10047 | 130 | # define ERA 10047 |
| 119 | # define ERA_D_FMT 10048 | 131 | # define ERA_D_FMT 10048 |
| 120 | # define ERA_D_T_FMT 10049 | 132 | # define ERA_D_T_FMT 10049 |
| @@ -150,11 +162,6 @@ typedef int nl_item; | |||
| 150 | # define GNULIB_defined_CODESET 1 | 162 | # define GNULIB_defined_CODESET 1 |
| 151 | # endif | 163 | # endif |
| 152 | 164 | ||
| 153 | # if !@HAVE_LANGINFO_T_FMT_AMPM@ | ||
| 154 | # define T_FMT_AMPM 10006 | ||
| 155 | # define GNULIB_defined_T_FMT_AMPM 1 | ||
| 156 | # endif | ||
| 157 | |||
| 158 | # if !@HAVE_LANGINFO_ALTMON@ | 165 | # if !@HAVE_LANGINFO_ALTMON@ |
| 159 | # define ALTMON_1 10200 | 166 | # define ALTMON_1 10200 |
| 160 | # define ALTMON_2 (ALTMON_1 + 1) | 167 | # define ALTMON_2 (ALTMON_1 + 1) |
| @@ -171,6 +178,37 @@ typedef int nl_item; | |||
| 171 | # define GNULIB_defined_ALTMON 1 | 178 | # define GNULIB_defined_ALTMON 1 |
| 172 | # endif | 179 | # endif |
| 173 | 180 | ||
| 181 | # if !@HAVE_LANGINFO_ABALTMON@ | ||
| 182 | # if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 27 | ||
| 183 | # define ABALTMON_1 _NL_ABALTMON_1 | ||
| 184 | # define ABALTMON_2 _NL_ABALTMON_2 | ||
| 185 | # define ABALTMON_3 _NL_ABALTMON_3 | ||
| 186 | # define ABALTMON_4 _NL_ABALTMON_4 | ||
| 187 | # define ABALTMON_5 _NL_ABALTMON_5 | ||
| 188 | # define ABALTMON_6 _NL_ABALTMON_6 | ||
| 189 | # define ABALTMON_7 _NL_ABALTMON_7 | ||
| 190 | # define ABALTMON_8 _NL_ABALTMON_8 | ||
| 191 | # define ABALTMON_9 _NL_ABALTMON_9 | ||
| 192 | # define ABALTMON_10 _NL_ABALTMON_10 | ||
| 193 | # define ABALTMON_11 _NL_ABALTMON_11 | ||
| 194 | # define ABALTMON_12 _NL_ABALTMON_12 | ||
| 195 | # else | ||
| 196 | # define ABALTMON_1 10220 | ||
| 197 | # define ABALTMON_2 (ABALTMON_1 + 1) | ||
| 198 | # define ABALTMON_3 (ABALTMON_1 + 2) | ||
| 199 | # define ABALTMON_4 (ABALTMON_1 + 3) | ||
| 200 | # define ABALTMON_5 (ABALTMON_1 + 4) | ||
| 201 | # define ABALTMON_6 (ABALTMON_1 + 5) | ||
| 202 | # define ABALTMON_7 (ABALTMON_1 + 6) | ||
| 203 | # define ABALTMON_8 (ABALTMON_1 + 7) | ||
| 204 | # define ABALTMON_9 (ABALTMON_1 + 8) | ||
| 205 | # define ABALTMON_10 (ABALTMON_1 + 9) | ||
| 206 | # define ABALTMON_11 (ABALTMON_1 + 10) | ||
| 207 | # define ABALTMON_12 (ABALTMON_1 + 11) | ||
| 208 | # define GNULIB_defined_ABALTMON 1 | ||
| 209 | # endif | ||
| 210 | # endif | ||
| 211 | |||
| 174 | # if !@HAVE_LANGINFO_ERA@ | 212 | # if !@HAVE_LANGINFO_ERA@ |
| 175 | # define ERA 10047 | 213 | # define ERA 10047 |
| 176 | # define ERA_D_FMT 10048 | 214 | # define ERA_D_FMT 10048 |
| @@ -180,12 +218,6 @@ typedef int nl_item; | |||
| 180 | # define GNULIB_defined_ERA 1 | 218 | # define GNULIB_defined_ERA 1 |
| 181 | # endif | 219 | # endif |
| 182 | 220 | ||
| 183 | # if !@HAVE_LANGINFO_YESEXPR@ | ||
| 184 | # define YESEXPR 10053 | ||
| 185 | # define NOEXPR 10054 | ||
| 186 | # define GNULIB_defined_YESEXPR 1 | ||
| 187 | # endif | ||
| 188 | |||
| 189 | #endif | 221 | #endif |
| 190 | 222 | ||
| 191 | /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ | 223 | /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ |
| @@ -205,11 +237,11 @@ typedef int nl_item; | |||
| 205 | # undef nl_langinfo | 237 | # undef nl_langinfo |
| 206 | # define nl_langinfo rpl_nl_langinfo | 238 | # define nl_langinfo rpl_nl_langinfo |
| 207 | # endif | 239 | # endif |
| 208 | _GL_FUNCDECL_RPL (nl_langinfo, char *, (nl_item item)); | 240 | _GL_FUNCDECL_RPL (nl_langinfo, char *, (nl_item item), ); |
| 209 | _GL_CXXALIAS_RPL (nl_langinfo, char *, (nl_item item)); | 241 | _GL_CXXALIAS_RPL (nl_langinfo, char *, (nl_item item)); |
| 210 | # else | 242 | # else |
| 211 | # if !@HAVE_NL_LANGINFO@ | 243 | # if !@HAVE_NL_LANGINFO@ |
| 212 | _GL_FUNCDECL_SYS (nl_langinfo, char *, (nl_item item)); | 244 | _GL_FUNCDECL_SYS (nl_langinfo, char *, (nl_item item), ); |
| 213 | # endif | 245 | # endif |
| 214 | _GL_CXXALIAS_SYS (nl_langinfo, char *, (nl_item item)); | 246 | _GL_CXXALIAS_SYS (nl_langinfo, char *, (nl_item item)); |
| 215 | # endif | 247 | # endif |
| @@ -217,7 +249,6 @@ _GL_CXXALIAS_SYS (nl_langinfo, char *, (nl_item item)); | |||
| 217 | _GL_CXXALIASWARN (nl_langinfo); | 249 | _GL_CXXALIASWARN (nl_langinfo); |
| 218 | # endif | 250 | # endif |
| 219 | #elif defined GNULIB_POSIXCHECK | 251 | #elif defined GNULIB_POSIXCHECK |
| 220 | # undef nl_langinfo | ||
| 221 | # if HAVE_RAW_DECL_NL_LANGINFO | 252 | # if HAVE_RAW_DECL_NL_LANGINFO |
| 222 | _GL_WARN_ON_USE (nl_langinfo, "nl_langinfo is not portable - " | 253 | _GL_WARN_ON_USE (nl_langinfo, "nl_langinfo is not portable - " |
| 223 | "use gnulib module nl_langinfo for portability"); | 254 | "use gnulib module nl_langinfo for portability"); |
