Commit | Line | Data |
---|---|---|
f7416781 KW |
1 | /* Replaces <langinfo.h>, and allows our code to work on systems that don't |
2 | * have that. */ | |
3 | ||
4 | #ifndef PERL_LANGINFO_H | |
5 | #define PERL_LANGINFO_H 1 | |
6 | ||
7 | #include "config.h" | |
8 | ||
73febbcd | 9 | #if defined(I_LANGINFO) |
f7416781 | 10 | # include <langinfo.h> |
b188d37a KW |
11 | #else |
12 | ||
13 | typedef int nl_item; /* Substitute 'int' for emulated nl_langinfo() */ | |
14 | ||
f7416781 KW |
15 | #endif |
16 | ||
17 | /* NOTE that this file is parsed by ext/XS-APItest/t/locale.t, so be careful | |
18 | * with changes */ | |
19 | ||
6c34d5cd | 20 | /* If foo doesn't exist define it to a negative number. */ |
f7416781 | 21 | |
4e6826bf KW |
22 | #ifndef CODESET |
23 | # define CODESET -1 | |
c23c19c0 | 24 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
25 | #endif |
26 | #ifndef D_T_FMT | |
27 | # define D_T_FMT -2 | |
c23c19c0 | 28 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
29 | #endif |
30 | #ifndef D_FMT | |
31 | # define D_FMT -3 | |
c23c19c0 | 32 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
33 | #endif |
34 | #ifndef T_FMT | |
35 | # define T_FMT -4 | |
c23c19c0 | 36 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
37 | #endif |
38 | #ifndef T_FMT_AMPM | |
39 | # define T_FMT_AMPM -5 | |
c23c19c0 | 40 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
41 | #endif |
42 | #ifndef AM_STR | |
43 | # define AM_STR -6 | |
c23c19c0 | 44 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
45 | #endif |
46 | #ifndef PM_STR | |
47 | # define PM_STR -7 | |
c23c19c0 | 48 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
49 | #endif |
50 | #ifndef DAY_1 | |
51 | # define DAY_1 -8 | |
c23c19c0 | 52 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
53 | #endif |
54 | #ifndef DAY_2 | |
55 | # define DAY_2 -9 | |
c23c19c0 | 56 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
57 | #endif |
58 | #ifndef DAY_3 | |
59 | # define DAY_3 -10 | |
c23c19c0 | 60 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
61 | #endif |
62 | #ifndef DAY_4 | |
63 | # define DAY_4 -11 | |
c23c19c0 | 64 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
65 | #endif |
66 | #ifndef DAY_5 | |
67 | # define DAY_5 -12 | |
c23c19c0 | 68 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
69 | #endif |
70 | #ifndef DAY_6 | |
71 | # define DAY_6 -13 | |
c23c19c0 | 72 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
73 | #endif |
74 | #ifndef DAY_7 | |
75 | # define DAY_7 -14 | |
c23c19c0 | 76 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
77 | #endif |
78 | #ifndef ABDAY_1 | |
79 | # define ABDAY_1 -15 | |
c23c19c0 | 80 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
81 | #endif |
82 | #ifndef ABDAY_2 | |
83 | # define ABDAY_2 -16 | |
c23c19c0 | 84 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
85 | #endif |
86 | #ifndef ABDAY_3 | |
87 | # define ABDAY_3 -17 | |
c23c19c0 | 88 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
89 | #endif |
90 | #ifndef ABDAY_4 | |
91 | # define ABDAY_4 -18 | |
c23c19c0 | 92 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
93 | #endif |
94 | #ifndef ABDAY_5 | |
95 | # define ABDAY_5 -19 | |
c23c19c0 | 96 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
97 | #endif |
98 | #ifndef ABDAY_6 | |
99 | # define ABDAY_6 -20 | |
c23c19c0 | 100 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
101 | #endif |
102 | #ifndef ABDAY_7 | |
103 | # define ABDAY_7 -21 | |
c23c19c0 | 104 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
105 | #endif |
106 | #ifndef MON_1 | |
107 | # define MON_1 -22 | |
c23c19c0 | 108 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
109 | #endif |
110 | #ifndef MON_2 | |
111 | # define MON_2 -23 | |
c23c19c0 | 112 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
113 | #endif |
114 | #ifndef MON_3 | |
115 | # define MON_3 -24 | |
c23c19c0 | 116 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
117 | #endif |
118 | #ifndef MON_4 | |
119 | # define MON_4 -25 | |
c23c19c0 | 120 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
121 | #endif |
122 | #ifndef MON_5 | |
123 | # define MON_5 -26 | |
c23c19c0 | 124 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
125 | #endif |
126 | #ifndef MON_6 | |
127 | # define MON_6 -27 | |
c23c19c0 | 128 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
129 | #endif |
130 | #ifndef MON_7 | |
131 | # define MON_7 -28 | |
c23c19c0 | 132 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
133 | #endif |
134 | #ifndef MON_8 | |
135 | # define MON_8 -29 | |
c23c19c0 | 136 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
137 | #endif |
138 | #ifndef MON_9 | |
139 | # define MON_9 -30 | |
c23c19c0 | 140 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
141 | #endif |
142 | #ifndef MON_10 | |
143 | # define MON_10 -31 | |
c23c19c0 | 144 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
145 | #endif |
146 | #ifndef MON_11 | |
147 | # define MON_11 -32 | |
c23c19c0 | 148 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
149 | #endif |
150 | #ifndef MON_12 | |
151 | # define MON_12 -33 | |
c23c19c0 | 152 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
153 | #endif |
154 | #ifndef ABMON_1 | |
155 | # define ABMON_1 -34 | |
c23c19c0 | 156 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
157 | #endif |
158 | #ifndef ABMON_2 | |
159 | # define ABMON_2 -35 | |
c23c19c0 | 160 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
161 | #endif |
162 | #ifndef ABMON_3 | |
163 | # define ABMON_3 -36 | |
c23c19c0 | 164 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
165 | #endif |
166 | #ifndef ABMON_4 | |
167 | # define ABMON_4 -37 | |
c23c19c0 | 168 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
169 | #endif |
170 | #ifndef ABMON_5 | |
171 | # define ABMON_5 -38 | |
c23c19c0 | 172 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
173 | #endif |
174 | #ifndef ABMON_6 | |
175 | # define ABMON_6 -39 | |
c23c19c0 | 176 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
177 | #endif |
178 | #ifndef ABMON_7 | |
179 | # define ABMON_7 -40 | |
c23c19c0 | 180 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
181 | #endif |
182 | #ifndef ABMON_8 | |
183 | # define ABMON_8 -41 | |
c23c19c0 | 184 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
185 | #endif |
186 | #ifndef ABMON_9 | |
187 | # define ABMON_9 -42 | |
c23c19c0 | 188 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
189 | #endif |
190 | #ifndef ABMON_10 | |
191 | # define ABMON_10 -43 | |
c23c19c0 | 192 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
193 | #endif |
194 | #ifndef ABMON_11 | |
195 | # define ABMON_11 -44 | |
c23c19c0 | 196 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
197 | #endif |
198 | #ifndef ABMON_12 | |
199 | # define ABMON_12 -45 | |
c23c19c0 | 200 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
201 | #endif |
202 | #ifndef ERA | |
203 | # define ERA -46 | |
c23c19c0 | 204 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
205 | #endif |
206 | #ifndef ERA_D_FMT | |
207 | # define ERA_D_FMT -47 | |
c23c19c0 | 208 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
209 | #endif |
210 | #ifndef ERA_D_T_FMT | |
211 | # define ERA_D_T_FMT -48 | |
c23c19c0 | 212 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
213 | #endif |
214 | #ifndef ERA_T_FMT | |
215 | # define ERA_T_FMT -49 | |
c23c19c0 | 216 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
217 | #endif |
218 | #ifndef ALT_DIGITS | |
219 | # define ALT_DIGITS -50 | |
c23c19c0 | 220 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
221 | #endif |
222 | #ifndef RADIXCHAR | |
223 | # define RADIXCHAR -51 | |
c23c19c0 | 224 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
225 | #endif |
226 | #ifndef THOUSEP | |
227 | # define THOUSEP -52 | |
c23c19c0 | 228 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
229 | #endif |
230 | #ifndef YESEXPR | |
231 | # define YESEXPR -53 | |
c23c19c0 | 232 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
233 | #endif |
234 | #ifndef YESSTR | |
235 | # define YESSTR -54 | |
c23c19c0 | 236 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
237 | #endif |
238 | #ifndef NOEXPR | |
239 | # define NOEXPR -55 | |
c23c19c0 | 240 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
241 | #endif |
242 | #ifndef NOSTR | |
243 | # define NOSTR -56 | |
c23c19c0 | 244 | # define HAS_MISSING_LANGINFO_ITEM_ |
4e6826bf KW |
245 | #endif |
246 | #ifndef CRNCYSTR | |
247 | # define CRNCYSTR -57 | |
c23c19c0 | 248 | # define HAS_MISSING_LANGINFO_ITEM_ |
f7416781 KW |
249 | #endif |
250 | ||
251 | #endif |