Mercurial > libavutil.hg
changeset 940:fc75699d2910 libavutil
Fix compilation on windows CE
author | mstorsjo |
---|---|
date | Mon, 14 Jun 2010 08:51:46 +0000 |
parents | 1acef06f2739 |
children | 1f17993c2baa |
files | log.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/log.c Sun Jun 13 09:06:50 2010 +0000 +++ b/log.c Mon Jun 14 08:51:46 2010 +0000 @@ -34,7 +34,7 @@ #endif int av_log_level = AV_LOG_INFO; -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__MINGW32CE__) #include <windows.h> static const uint8_t color[] = {12,12,12,14,7,7,7}; static int16_t background, attr_orig; @@ -51,7 +51,7 @@ #undef fprintf static void colored_fputs(int level, const char *str){ if(use_color<0){ -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__MINGW32CE__) CONSOLE_SCREEN_BUFFER_INFO con_info; con = GetStdHandle(STD_ERROR_HANDLE); use_color = (con != INVALID_HANDLE_VALUE) && !getenv("NO_COLOR");