diff options
author | wm4 <wm4@nowhere> | 2015-07-28 23:59:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-29 00:01:32 +0200 |
commit | 0b52ac8a78245793daaf533f5f8b74cb019a8aa8 (patch) | |
tree | d4256c2440a61c367006b858d90ea766075a9630 /osdep/io.h | |
parent | 7d889fbdd0735aab6c0930ed23bc8b5c33ff46e7 (diff) | |
download | mpv-0b52ac8a78245793daaf533f5f8b74cb019a8aa8.tar.bz2 mpv-0b52ac8a78245793daaf533f5f8b74cb019a8aa8.tar.xz |
win32: replace wchar_t with WCHAR
WCHAR is more portable. While at least MinGW, Cygwin, and MSVC actually
use 16 bit wchar_t, Midipix will have 32 bit wchar_t. In that context,
using WCHAR instead is more portable.
This affects only non-MinGW parts, so not all uses of wchar_t need to
be changed. For example, terminal-win.c won't be used on Midipix at
all. (Most of io.c won't either, so the search & replace here is more
than necessary, but also not harmful.)
(Midipix is not useable yet, so this is just preparation.)
Diffstat (limited to 'osdep/io.h')
-rw-r--r-- | osdep/io.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/osdep/io.h b/osdep/io.h index 8d3e24f551..3bf09fffb8 100644 --- a/osdep/io.h +++ b/osdep/io.h @@ -49,9 +49,9 @@ int mp_make_cloexec_pipe(int pipes[2]); int mp_make_wakeup_pipe(int pipes[2]); #ifdef _WIN32 -#include <wchar.h> -wchar_t *mp_from_utf8(void *talloc_ctx, const char *s); -char *mp_to_utf8(void *talloc_ctx, const wchar_t *s); +#include <windows.h> +WCHAR *mp_from_utf8(void *talloc_ctx, const char *s); +char *mp_to_utf8(void *talloc_ctx, const WCHAR *s); #endif #ifdef __CYGWIN__ |