OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14a34d9
)
log: Include io.h on windows
author
Ronald S. Bultje
<rsbultje@gmail.com>
Sun, 24 Jun 2012 17:57:35 +0000
(20:57 +0300)
committer
Martin Storsjö
<martin@martin.st>
Mon, 25 Jun 2012 20:28:36 +0000
(23:28 +0300)
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>
libavutil/log.c
patch
|
blob
|
history
diff --git
a/libavutil/log.c
b/libavutil/log.c
index
e2773d4
..
9f1d59a
100644
(file)
--- a/
libavutil/log.c
+++ b/
libavutil/log.c
@@
-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;