summaryrefslogtreecommitdiffstats
path: root/osdep/io.h
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2011-10-22 16:24:16 +0200
committerUoti Urpala <uau@mplayer2.org>2012-03-09 20:48:54 +0200
commitf891939b4db79bce39c5f257771557904da4d535 (patch)
tree1bf77e2d384b7f736f451b9a0cb7922ab219cebf /osdep/io.h
parenta1244111a790bbc4bf91b078ebcad3f415da79da (diff)
downloadmpv-f891939b4db79bce39c5f257771557904da4d535.tar.bz2
mpv-f891939b4db79bce39c5f257771557904da4d535.tar.xz
windows: terminal: unicode, --msgcolor, size change
Make mp_msg() support unicode output, --msgcolor and variable screen sizes. Patch reintegrated by wm4.
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 514030afca..462a84917b 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_fprintf(FILE *stream, const char *format, ...);
int mp_open(const char *filename, int oflag, ...);
int mp_creat(const char *filename, int mode);
FILE *mp_fopen(const char *filename, const char *mode);
@@ -57,6 +58,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 fprintf(...) mp_fprintf(__VA_ARGS__)
#define open(...) mp_open(__VA_ARGS__)
#define creat(...) mp_creat(__VA_ARGS__)
#define fopen(...) mp_fopen(__VA_ARGS__)