From b70abd5b614341947ce7d81c1de97877dec5f35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 30 Nov 2012 16:56:54 +0200 Subject: [PATCH] avutil: Include io.h with a separate condition from windows console functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not all versions of windows have the console color functions, while io.h might be needed for isatty (which can be found in unistd.h or io.h). Signed-off-by: Martin Storsjö --- libavutil/log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavutil/log.c b/libavutil/log.c index d2cf88fd4b..d335944330 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -29,6 +29,9 @@ #if HAVE_UNISTD_H #include #endif +#if HAVE_IO_H +#include +#endif #include #include "avstring.h" #include "avutil.h" @@ -40,7 +43,6 @@ static int flags; #if defined(_WIN32) && !defined(__MINGW32CE__) #include -#include static const uint8_t color[] = { 12, 12, 12, 14, 7, 10, 11 }; static int16_t background, attr_orig; static HANDLE con;