aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-06-14 08:51:46 +0000
committerMartin Storsjö <martin@martin.st>2010-06-14 08:51:46 +0000
commit3c467bacaa9d260c0a8bacf7ff36418f93d3edd4 (patch)
tree09e80746fffb0ca3404f789ebb982faa3ab97328
parentafcea58c53a54b0238601106bf668b990251e94e (diff)
downloadffmpeg-3c467bacaa9d260c0a8bacf7ff36418f93d3edd4.tar.gz
Fix compilation on windows CE
Originally committed as revision 23600 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavutil/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/log.c b/libavutil/log.c
index 9e09a10398..5f7034b4e3 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -34,7 +34,7 @@ static
#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 @@ static int use_color=-1;
#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");