| 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 | #define __WINE_USE_MSVCRT
 | 
|---|
| 11 | 
 | 
|---|
| 12 | #include "msvcrt/io.h"
 | 
|---|
| 13 | #include "msvcrt/locale.h"
 | 
|---|
| 14 | #include "msvcrt/process.h"
 | 
|---|
| 15 | #include "msvcrt/stdio.h"
 | 
|---|
| 16 | #include "msvcrt/stdlib.h"
 | 
|---|
| 17 | #include "msvcrt/string.h"
 | 
|---|
| 18 | #include "msvcrt/sys/stat.h"
 | 
|---|
| 19 | #include "msvcrt/sys/types.h"
 | 
|---|
| 20 | #include "msvcrt/time.h"
 | 
|---|
| 21 | #include "msvcrt/wctype.h"
 | 
|---|
| 22 | 
 | 
|---|
| 23 | 
 | 
|---|
| 24 | #define WCHAR_MIN 0
 | 
|---|
| 25 | #define WCHAR_MAX ((WCHAR)-1)
 | 
|---|
| 26 | 
 | 
|---|
| 27 | typedef int MSVCRT(mbstate_t);
 | 
|---|
| 28 | 
 | 
|---|
| 29 | #ifndef MSVCRT_SIZE_T_DEFINED
 | 
|---|
| 30 | typedef unsigned int MSVCRT(size_t);
 | 
|---|
| 31 | #define MSVCRT_SIZE_T_DEFINED
 | 
|---|
| 32 | #endif
 | 
|---|
| 33 | 
 | 
|---|
| 34 | 
 | 
|---|
| 35 | #ifdef __cplusplus
 | 
|---|
| 36 | extern "C" {
 | 
|---|
| 37 | #endif
 | 
|---|
| 38 | 
 | 
|---|
| 39 | WCHAR       btowc(int);
 | 
|---|
| 40 | MSVCRT(size_t) mbrlen(const char *,MSVCRT(size_t),MSVCRT(mbstate_t)*);
 | 
|---|
| 41 | MSVCRT(size_t) mbrtowc(WCHAR*,const char*,MSVCRT(size_t),MSVCRT(mbstate_t)*);
 | 
|---|
| 42 | MSVCRT(size_t) mbsrtowcs(WCHAR*,const char**,MSVCRT(size_t),MSVCRT(mbstate_t)*);
 | 
|---|
| 43 | MSVCRT(size_t) wcrtomb(char*,WCHAR,MSVCRT(mbstate_t)*);
 | 
|---|
| 44 | MSVCRT(size_t) wcsrtombs(char*,const WCHAR**,MSVCRT(size_t),MSVCRT(mbstate_t)*);
 | 
|---|
| 45 | int         wctob(MSVCRT(wint_t));
 | 
|---|
| 46 | 
 | 
|---|
| 47 | #ifdef __cplusplus
 | 
|---|
| 48 | }
 | 
|---|
| 49 | #endif
 | 
|---|
| 50 | 
 | 
|---|
| 51 | #endif /* __WINE_WCHAR_H */
 | 
|---|