summaryrefslogtreecommitdiffstats
path: root/osdep/io.h
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-04-06 23:42:02 +0200
committerwm4 <wm4@mplayer2.org>2012-04-06 23:56:30 +0200
commita659429f865859d66f7fe27e45cb20cb897546ec (patch)
treec5c06f821282ee9e36e0c31a37a084848466b855 /osdep/io.h
parentce7562705e8adb9a8b567da10ae0d9d8df646d7d (diff)
downloadmpv-a659429f865859d66f7fe27e45cb20cb897546ec.tar.bz2
mpv-a659429f865859d66f7fe27e45cb20cb897546ec.tar.xz
win32: use more unicode functions
Use the *W variants instead of the implicit *A functions. (One could define the UNICODE macro to switch the functions without suffix from A to W, but I'm too lazy to figure out how portable that is, etc.) Also make sure io.h defines a unicode aware printf().
Diffstat (limited to 'osdep/io.h')
-rw-r--r--osdep/io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/io.h b/osdep/io.h
index 462a84917b..4383d61143 100644
--- a/osdep/io.h
+++ b/osdep/io.h
@@ -46,6 +46,7 @@ char *mp_to_utf8(void *talloc_ctx, const wchar_t *s);
void mp_get_converted_argv(int *argc, char ***argv);
int mp_stat(const char *path, struct stat *buf);
+int mp_printf(const char *format, ...);
int mp_fprintf(FILE *stream, const char *format, ...);
int mp_open(const char *filename, int oflag, ...);
int mp_creat(const char *filename, int mode);
@@ -58,6 +59,7 @@ int mp_mkdir(const char *path, int mode);
// NOTE: Stat is not overridden with mp_stat, because MinGW-w64 defines it as
// macro.
+#define printf(...) mp_printf(__VA_ARGS__)
#define fprintf(...) mp_fprintf(__VA_ARGS__)
#define open(...) mp_open(__VA_ARGS__)
#define creat(...) mp_creat(__VA_ARGS__)