[FFmpeg-cvslog] r23600 - trunk/libavutil/log.c

mstorsjo subversion
Mon Jun 14 10:51:46 CEST 2010


Author: mstorsjo
Date: Mon Jun 14 10:51:46 2010
New Revision: 23600

Log:
Fix compilation on windows CE

Modified:
   trunk/libavutil/log.c

Modified: trunk/libavutil/log.c
==============================================================================
--- trunk/libavutil/log.c	Mon Jun 14 10:23:59 2010	(r23599)
+++ trunk/libavutil/log.c	Mon Jun 14 10:51:46 2010	(r23600)
@@ -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");



More information about the ffmpeg-cvslog mailing list