Commit b8a84f11 authored by mstorsjo's avatar mstorsjo

Fix compilation on windows CE


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23600 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5942bd0c
...@@ -34,7 +34,7 @@ static ...@@ -34,7 +34,7 @@ static
#endif #endif
int av_log_level = AV_LOG_INFO; int av_log_level = AV_LOG_INFO;
#ifdef _WIN32 #if defined(_WIN32) && !defined(__MINGW32CE__)
#include <windows.h> #include <windows.h>
static const uint8_t color[] = {12,12,12,14,7,7,7}; static const uint8_t color[] = {12,12,12,14,7,7,7};
static int16_t background, attr_orig; static int16_t background, attr_orig;
...@@ -51,7 +51,7 @@ static int use_color=-1; ...@@ -51,7 +51,7 @@ static int use_color=-1;
#undef fprintf #undef fprintf
static void colored_fputs(int level, const char *str){ static void colored_fputs(int level, const char *str){
if(use_color<0){ if(use_color<0){
#ifdef _WIN32 #if defined(_WIN32) && !defined(__MINGW32CE__)
CONSOLE_SCREEN_BUFFER_INFO con_info; CONSOLE_SCREEN_BUFFER_INFO con_info;
con = GetStdHandle(STD_ERROR_HANDLE); con = GetStdHandle(STD_ERROR_HANDLE);
use_color = (con != INVALID_HANDLE_VALUE) && !getenv("NO_COLOR"); use_color = (con != INVALID_HANDLE_VALUE) && !getenv("NO_COLOR");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment