summaryrefslogtreecommitdiff
path: root/src/win32.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2007-03-07 18:58:28 +0000
committerDarkvater <Darkvater@openttd.org>2007-03-07 18:58:28 +0000
commit1a2576cd7ea8051ab5da17bc192924fe5ba871c3 (patch)
treeba99aff4f6b2c185df22ce8dd28562996f0a5441 /src/win32.h
parent663bf46352c27241f17bf2cb1591344c4b347368 (diff)
downloadopenttd-1a2576cd7ea8051ab5da17bc192924fe5ba871c3.tar.xz
(svn r9055) -Codechange: Change windows unicode handling and allow a pure non-unicode build to function. Win9x binaries will be possible with mingw/nightly system.
Diffstat (limited to 'src/win32.h')
-rw-r--r--src/win32.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/win32.h b/src/win32.h
index 4938c3a2a..f91eaf3c5 100644
--- a/src/win32.h
+++ b/src/win32.h
@@ -26,6 +26,7 @@ wchar_t *convert_to_fs(const char *name, wchar_t *utf16_buf, size_t buflen);
# define WIDE_TO_MB(str) FS2OTTD(str)
# define WIDE_TO_MB_BUFFER(str, buffer, buflen) convert_from_fs(str, buffer, buflen)
#else
+extern uint _codepage; // local code-page in the system @see win32_v.cpp:WM_INPUTLANGCHANGE
# define MB_TO_WIDE(str) (str)
# define MB_TO_WIDE_BUFFER(str, buffer, buflen) (str)
# define WIDE_TO_MB(str) (str)