Browse Source

log: Include io.h on windows

This is required for isatty, which exists on MSVC and is found by
configure, but is provided by io.h instead of unistd.h.

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n1.0
Ronald S. Bultje Martin Storsjö 13 years ago
parent
commit
246154a9af
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavutil/log.c

+ 1
- 0
libavutil/log.c View File

@@ -39,6 +39,7 @@ static int flags;

#if defined(_WIN32) && !defined(__MINGW32CE__)
#include <windows.h>
#include <io.h>
static const uint8_t color[] = { 12, 12, 12, 14, 7, 10, 11 };
static int16_t background, attr_orig;
static HANDLE con;


Loading…
Cancel
Save