summaryrefslogtreecommitdiffstats
path: root/gl/langinfo.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/langinfo.in.h')
-rw-r--r--gl/langinfo.in.h30
1 files changed, 22 insertions, 8 deletions
diff --git a/gl/langinfo.in.h b/gl/langinfo.in.h
index 0865d96c..5388ce62 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, 2010 Free Software Foundation, Inc. 2 Copyright (C) 2009-2013 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
@@ -12,27 +12,27 @@
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software Foundation, 15 along with this program; if not, see <http://www.gnu.org/licenses/>. */
16 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
17 16
18/* 17/*
19 * POSIX <langinfo.h> for platforms that lack it or have an incomplete one. 18 * POSIX <langinfo.h> for platforms that lack it or have an incomplete one.
20 * <http://www.opengroup.org/onlinepubs/9699919799/basedefs/langinfo.h.html> 19 * <http://www.opengroup.org/onlinepubs/9699919799/basedefs/langinfo.h.html>
21 */ 20 */
22 21
23#ifndef _GL_LANGINFO_H 22#ifndef _@GUARD_PREFIX@_LANGINFO_H
24 23
25#if __GNUC__ >= 3 24#if __GNUC__ >= 3
26@PRAGMA_SYSTEM_HEADER@ 25@PRAGMA_SYSTEM_HEADER@
27#endif 26#endif
27@PRAGMA_COLUMNS@
28 28
29/* The include_next requires a split double-inclusion guard. */ 29/* The include_next requires a split double-inclusion guard. */
30#if @HAVE_LANGINFO_H@ 30#if @HAVE_LANGINFO_H@
31# @INCLUDE_NEXT@ @NEXT_LANGINFO_H@ 31# @INCLUDE_NEXT@ @NEXT_LANGINFO_H@
32#endif 32#endif
33 33
34#ifndef _GL_LANGINFO_H 34#ifndef _@GUARD_PREFIX@_LANGINFO_H
35#define _GL_LANGINFO_H 35#define _@GUARD_PREFIX@_LANGINFO_H
36 36
37 37
38#if !@HAVE_LANGINFO_H@ 38#if !@HAVE_LANGINFO_H@
@@ -40,7 +40,10 @@
40/* A platform that lacks <langinfo.h>. */ 40/* A platform that lacks <langinfo.h>. */
41 41
42/* Assume that it also lacks <nl_types.h> and the nl_item type. */ 42/* Assume that it also lacks <nl_types.h> and the nl_item type. */
43# if !GNULIB_defined_nl_item
43typedef int nl_item; 44typedef int nl_item;
45# define GNULIB_defined_nl_item 1
46# endif
44 47
45/* nl_langinfo items of the LC_CTYPE category */ 48/* nl_langinfo items of the LC_CTYPE category */
46# define CODESET 10000 49# define CODESET 10000
@@ -112,6 +115,11 @@ typedef int nl_item;
112# define GNULIB_defined_CODESET 1 115# define GNULIB_defined_CODESET 1
113# endif 116# endif
114 117
118# if !@HAVE_LANGINFO_T_FMT_AMPM@
119# define T_FMT_AMPM 10006
120# define GNULIB_defined_T_FMT_AMPM 1
121# endif
122
115# if !@HAVE_LANGINFO_ERA@ 123# if !@HAVE_LANGINFO_ERA@
116# define ERA 10047 124# define ERA 10047
117# define ERA_D_FMT 10048 125# define ERA_D_FMT 10048
@@ -121,6 +129,12 @@ typedef int nl_item;
121# define GNULIB_defined_ERA 1 129# define GNULIB_defined_ERA 1
122# endif 130# endif
123 131
132# if !@HAVE_LANGINFO_YESEXPR@
133# define YESEXPR 10053
134# define NOEXPR 10054
135# define GNULIB_defined_YESEXPR 1
136# endif
137
124#endif 138#endif
125 139
126/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ 140/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
@@ -158,5 +172,5 @@ _GL_WARN_ON_USE (nl_langinfo, "nl_langinfo is not portable - "
158#endif 172#endif
159 173
160 174
161#endif /* _GL_LANGINFO_H */ 175#endif /* _@GUARD_PREFIX@_LANGINFO_H */
162#endif /* _GL_LANGINFO_H */ 176#endif /* _@GUARD_PREFIX@_LANGINFO_H */