summaryrefslogtreecommitdiff
path: root/win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'win32.h')
-rw-r--r--win32.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/win32.h b/win32.h
index be308af78..8353e173c 100644
--- a/win32.h
+++ b/win32.h
@@ -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 */