(svn r7278) -Codechange: [win32] Add UNICODE support so it should compile on OS's using UNICODE

API exclusively.
This commit is contained in:
Darkvater
2006-11-28 19:58:13 +00:00
parent 4e71091137
commit d8d210056d
4 changed files with 119 additions and 83 deletions

10
win32.h
View File

@@ -6,6 +6,14 @@
bool MyShowCursor(bool show);
typedef void (*Function)(int);
bool LoadLibraryList(Function proc[], const char* dll);
bool LoadLibraryList(Function proc[], const char *dll);
#if defined(UNICODE)
# define MB_TO_WIDE(x) OTTD2FS(x)
# define WIDE_TO_MB(x) FS2OTTD(x)
#else
# define MB_TO_WIDE(x) (x)
# define WIDE_TO_MB(x) (x)
#endif
#endif /* WIN32_H */