Fixed some issues found by winapi_check.
[wine] / include / msvcrt / wchar.h
1 /*
2  * Unicode definitions
3  *
4  * Derived from the mingw header written by Colin Peters.
5  * Modified for Wine use by Jon Griffiths and Francois Gouget.
6  * This file is in the public domain.
7  */
8 #ifndef __WINE_WCHAR_H
9 #define __WINE_WCHAR_H
10
11 #include "msvcrt/io.h"
12 /* FIXME: does not exist yet #include "msvcrt/locale.h" */
13 /* FIXME: does not exist yet #include "msvcrt/process.h" */
14 #include "msvcrt/stdio.h"
15 #include "msvcrt/stdlib.h"
16 #include "msvcrt/string.h"
17 #include "msvcrt/sys/stat.h"
18 /* FIXME: does not exist yet #include "msvcrt/sys/types.h" */
19 #include "msvcrt/time.h"
20 #include "msvcrt/wctype.h"
21
22
23 #define WCHAR_MIN 0
24 #define WCHAR_MAX ((WCHAR)-1)
25
26 typedef int MSVCRT(mbstate_t);
27
28 #ifndef MSVCRT_SIZE_T_DEFINED
29 typedef unsigned int MSVCRT(size_t);
30 #define MSVCRT_SIZE_T_DEFINED
31 #endif
32
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 WCHAR       btowc(int);
39 MSVCRT(size_t) mbrlen(const char *,MSVCRT(size_t),MSVCRT(mbstate_t)*);
40 MSVCRT(size_t) mbrtowc(WCHAR*,const char*,MSVCRT(size_t),MSVCRT(mbstate_t)*);
41 MSVCRT(size_t) mbsrtowcs(WCHAR*,const char**,MSVCRT(size_t),MSVCRT(mbstate_t)*);
42 MSVCRT(size_t) wcrtomb(char*,WCHAR,MSVCRT(mbstate_t)*);
43 MSVCRT(size_t) wcsrtombs(char*,const WCHAR**,MSVCRT(size_t),MSVCRT(mbstate_t)*);
44 int         wctob(MSVCRT(wint_t));
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif /* __WINE_WCHAR_H */