[FFmpeg-cvslog] checkasm: Include io.h for isatty, if available
Martin Storsjö
git at videolan.org
Thu Jul 30 12:36:37 CEST 2015
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Jul 29 23:08:09 2015 +0300| [bf0cef5c3a114df452e5476167634dd8f51eb448] | committer: Martin Storsjö
checkasm: Include io.h for isatty, if available
configure does check for isatty, and checkasm properly checks
HAVE_ISATTY, but on some platforms (e.g. WinRT), io.h needs to be
included for isatty to be available.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bf0cef5c3a114df452e5476167634dd8f51eb448
---
tests/checkasm/checkasm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c
index f1e9cd9..82c635e 100644
--- a/tests/checkasm/checkasm.c
+++ b/tests/checkasm/checkasm.c
@@ -29,6 +29,10 @@
#include "libavutil/cpu.h"
#include "libavutil/random_seed.h"
+#if HAVE_IO_H
+#include <io.h>
+#endif
+
#if ARCH_X86
#include "libavutil/x86/cpu.h"
#endif
More information about the ffmpeg-cvslog
mailing list