aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-07 12:54:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-07 12:57:13 +0200
commit50bfd547b9565bda7c282d280884ed0fd4e0fe9d (patch)
treed4707eaeb088007ba5ac5ca59a65272573c8d85d
parentd3f4fd76d521fb693537d0ecf8b2a6c1d93ac781 (diff)
downloadffmpeg-50bfd547b9565bda7c282d280884ed0fd4e0fe9d.tar.gz
log: fix compilation failure on mingw due to reference to undefined set_color256
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/log.c b/libavutil/log.c
index a637e8e391..53c756b561 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -65,6 +65,7 @@ static const uint8_t color[16 + AV_CLASS_CATEGORY_NB] = {
static int16_t background, attr_orig;
static HANDLE con;
#define set_color(x) SetConsoleTextAttribute(con, background | color[x])
+#define set_256color set_color
#define reset_color() SetConsoleTextAttribute(con, attr_orig)
#else