6 bool MyShowCursor(bool show); |
6 bool MyShowCursor(bool show); |
7 |
7 |
8 typedef void (*Function)(int); |
8 typedef void (*Function)(int); |
9 bool LoadLibraryList(Function proc[], const char *dll); |
9 bool LoadLibraryList(Function proc[], const char *dll); |
10 |
10 |
|
11 char *convert_from_fs(const wchar_t *name, char *utf8_buf, size_t buflen); |
|
12 wchar_t *convert_to_fs(const char *name, wchar_t *utf16_buf, size_t buflen); |
|
13 |
11 #if defined(UNICODE) |
14 #if defined(UNICODE) |
12 # define MB_TO_WIDE(x) OTTD2FS(x) |
15 # define MB_TO_WIDE(str) OTTD2FS(str) |
13 # define WIDE_TO_MB(x) FS2OTTD(x) |
16 # define MB_TO_WIDE_BUFFER(str, buffer, buflen) convert_to_fs(str, buffer, buflen) |
|
17 # define WIDE_TO_MB(str) FS2OTTD(str) |
|
18 # define WIDE_TO_MB_BUFFER(str, buffer, buflen) convert_from_fs(str, buffer, buflen) |
14 #else |
19 #else |
15 # define MB_TO_WIDE(x) (x) |
20 # define MB_TO_WIDE(str) (str) |
16 # define WIDE_TO_MB(x) (x) |
21 # define MB_TO_WIDE_BUFFER(str, buffer, buflen) (str) |
|
22 # define WIDE_TO_MB(str) (str) |
|
23 # define WIDE_TO_MB_BUFFER(str, buffer, buflen) (str) |
17 #endif |
24 #endif |
18 |
25 |
19 #endif /* WIN32_H */ |
26 #endif /* WIN32_H */ |