tccpe: build IAT vector with with -run too
[tinycc/k1w1.git] / win32 / include / locale.h
blobd0da14d6b7784dfe73f096bf631fc30f6d19f5d2
1 /*
2 * locale.h
4 * Functions and types for localization (ie. changing the appearance of
5 * output based on the standards of a certain country).
7 * This file is part of the Mingw32 package.
9 * Contributors:
10 * Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
12 * THIS SOFTWARE IS NOT COPYRIGHTED
14 * This source code is offered for use in the public domain. You may
15 * use, modify or distribute it freely.
17 * This code is distributed in the hope that it will be useful but
18 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
19 * DISCLAIMED. This includes but is not limited to warranties of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22 * $Revision: 1.2 $
23 * $Author: bellard $
24 * $Date: 2005/04/17 13:14:29 $
28 #ifndef _LOCALE_H_
29 #define _LOCALE_H_
31 /* All the headers include this file. */
32 #include <_mingw.h>
35 * NOTE: I have tried to test this, but I am limited by my knowledge of
36 * locale issues. The structure does not bomb if you look at the
37 * values, and 'decimal_point' even seems to be correct. But the
38 * rest of the values are, by default, not particularly useful
39 * (read meaningless and not related to the international settings
40 * of the system).
43 #define LC_ALL 0
44 #define LC_COLLATE 1
45 #define LC_CTYPE 2
46 #define LC_MONETARY 3
47 #define LC_NUMERIC 4
48 #define LC_TIME 5
49 #define LC_MIN LC_ALL
50 #define LC_MAX LC_TIME
52 #ifndef RC_INVOKED
55 * The structure returned by 'localeconv'.
57 struct lconv
59 char* decimal_point;
60 char* thousands_sep;
61 char* grouping;
62 char* int_curr_symbol;
63 char* currency_symbol;
64 char* mon_decimal_point;
65 char* mon_thousands_sep;
66 char* mon_grouping;
67 char* positive_sign;
68 char* negative_sign;
69 char int_frac_digits;
70 char frac_digits;
71 char p_cs_precedes;
72 char p_sep_by_space;
73 char n_cs_precedes;
74 char n_sep_by_space;
75 char p_sign_posn;
76 char n_sign_posn;
79 #ifdef __cplusplus
80 extern "C" {
81 #endif
83 char* setlocale (int, const char*);
84 struct lconv* localeconv (void);
86 #ifndef _WLOCALE_DEFINED /* also declared in wchar.h */
87 # define __need_wchar_t
88 # include <stddef.h>
89 wchar_t* _wsetlocale(int, const wchar_t*);
90 # define _WLOCALE_DEFINED
91 #endif /* ndef _WLOCALE_DEFINED */
93 #ifdef __cplusplus
95 #endif
97 #endif /* Not RC_INVOKED */
99 #endif /* Not _LOCALE_H_ */