From f891939b4db79bce39c5f257771557904da4d535 Mon Sep 17 00:00:00 2001 From: Martin Herkt Date: Sat, 22 Oct 2011 16:24:16 +0200 Subject: windows: terminal: unicode, --msgcolor, size change Make mp_msg() support unicode output, --msgcolor and variable screen sizes. Patch reintegrated by wm4. --- osdep/io.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'osdep/io.h') 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__) -- cgit v1.2.3