Fix compilation errors on FreeBSD.
[wine] / include / msvcrt / locale.h
1 /*
2  * Locale definitions
3  *
4  * Copyright 2000 Francois Gouget.
5  */
6 #ifndef __WINE_LOCALE_H
7 #define __WINE_LOCALE_H
8 #define __WINE_USE_MSVCRT
9
10 #include "winnt.h"
11
12 #ifdef USE_MSVCRT_PREFIX
13 #define MSVCRT(x)    MSVCRT_##x
14 #else
15 #define MSVCRT(x)    x
16 #endif
17
18 #ifdef USE_MSVCRT_PREFIX
19 #define MSVCRT_LC_ALL          0
20 #define MSVCRT_LC_COLLATE      1
21 #define MSVCRT_LC_CTYPE        2
22 #define MSVCRT_LC_MONETARY     3
23 #define MSVCRT_LC_NUMERIC      4
24 #define MSVCRT_LC_TIME         5
25 #define MSVCRT_LC_MIN          MSVCRT_LC_ALL
26 #define MSVCRT_LC_MAX          MSVCRT_LC_TIME
27 #else
28 #define LC_ALL                 0
29 #define LC_COLLATE             1
30 #define LC_CTYPE               2
31 #define LC_MONETARY            3
32 #define LC_NUMERIC             4
33 #define LC_TIME                5
34 #define LC_MIN                 LC_ALL
35 #define LC_MAX                 LC_TIME
36 #endif /* USE_MSVCRT_PREFIX */
37
38 struct MSVCRT(lconv)
39 {
40     char* decimal_point;
41     char* thousands_sep;
42     char* grouping;
43     char* int_curr_symbol;
44     char* currency_symbol;
45     char* mon_decimal_point;
46     char* mon_thousands_sep;
47     char* mon_grouping;
48     char* positive_sign;
49     char* negative_sign;
50     char int_frac_digits;
51     char frac_digits;
52     char p_cs_precedes;
53     char p_sep_by_space;
54     char n_cs_precedes;
55     char n_sep_by_space;
56     char p_sign_posn;
57     char n_sign_posn;
58 };
59
60
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64
65 char*       MSVCRT(setlocale)(int,const char*);
66 struct MSVCRT(lconv)* MSVCRT(localeconv)(void);
67
68 WCHAR*      _wsetlocale(int,const WCHAR*);
69
70 #ifdef __cplusplus
71 }
72 #endif
73
74 #endif /* __WINE_LOCALE_H */