avicap32: Use the Unix call helpers.
[wine.git] / include / msvcrt / locale.h
blobd2963813475d7f7f0447df91df8dfb8c375a4cf9
1 /*
2 * Locale definitions
4 * Copyright 2000 Francois Gouget.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_LOCALE_H
21 #define __WINE_LOCALE_H
23 #include <corecrt.h>
25 #define LC_ALL 0
26 #define LC_COLLATE 1
27 #define LC_CTYPE 2
28 #define LC_MONETARY 3
29 #define LC_NUMERIC 4
30 #define LC_TIME 5
31 #define LC_MIN LC_ALL
32 #define LC_MAX LC_TIME
34 #ifndef _LCONV_DEFINED
35 #define _LCONV_DEFINED
36 struct lconv
38 char* decimal_point;
39 char* thousands_sep;
40 char* grouping;
41 char* int_curr_symbol;
42 char* currency_symbol;
43 char* mon_decimal_point;
44 char* mon_thousands_sep;
45 char* mon_grouping;
46 char* positive_sign;
47 char* negative_sign;
48 char int_frac_digits;
49 char frac_digits;
50 char p_cs_precedes;
51 char p_sep_by_space;
52 char n_cs_precedes;
53 char n_sep_by_space;
54 char p_sign_posn;
55 char n_sign_posn;
56 #if _MSVCR_VER >= 100
57 wchar_t* _W_decimal_point;
58 wchar_t* _W_thousands_sep;
59 wchar_t* _W_int_curr_symbol;
60 wchar_t* _W_currency_symbol;
61 wchar_t* _W_mon_decimal_point;
62 wchar_t* _W_mon_thousands_sep;
63 wchar_t* _W_positive_sign;
64 wchar_t* _W_negative_sign;
65 #endif
67 #endif /* _LCONV_DEFINED */
69 struct tm;
71 #ifndef _CONFIG_LOCALE_SWT
72 #define _CONFIG_LOCALE_SWT
74 #define _ENABLE_PER_THREAD_LOCALE 0x1
75 #define _DISABLE_PER_THREAD_LOCALE 0x2
76 #define _ENABLE_PER_THREAD_LOCALE_GLOBAL 0x10
77 #define _DISABLE_PER_THREAD_LOCALE_GLOBAL 0x20
78 #define _ENABLE_PER_THREAD_LOCALE_NEW 0x100
79 #define _DISABLE_PER_THREAD_LOCALE_NEW 0x200
81 #endif
83 #ifdef __cplusplus
84 extern "C" {
85 #endif
87 _ACRTIMP char* __cdecl setlocale(int,const char*);
88 _ACRTIMP struct lconv* __cdecl localeconv(void);
89 _ACRTIMP size_t __cdecl _Strftime(char*,size_t,const char*,const struct tm*,void*);
90 _ACRTIMP int __cdecl _configthreadlocale(int);
91 _ACRTIMP _locale_t __cdecl _get_current_locale(void);
92 _ACRTIMP _locale_t __cdecl _create_locale(int, const char*);
93 _ACRTIMP void __cdecl _free_locale(_locale_t);
95 #ifndef _WLOCALE_DEFINED
96 #define _WLOCALE_DEFINED
97 _ACRTIMP wchar_t* __cdecl _wsetlocale(int,const wchar_t*);
98 #endif /* _WLOCALE_DEFINED */
100 #ifdef __cplusplus
102 #endif
104 #endif /* __WINE_LOCALE_H */