Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2019-02-06 15:20:55 +0300
committerMartin Storsjö <martin@martin.st>2019-02-08 01:28:46 +0300
commite85482baacd9feb689ad5d96d3f39bbfd3473cd6 (patch)
tree8f41c813d4397e5daaa0486fe850b00eff4c6fb5 /tools/dav1d.c
parent67f33e680e94e68a233455b6e767dd0789a5d9d8 (diff)
meson: Check for io.h and include it in dav1d.c if available
With MSVC, io.h holds the declaration of the isatty function. This fixes this warning: ../tools/dav1d.c(63): warning C4013: 'isatty' undefined; assuming extern returning int
Diffstat (limited to 'tools/dav1d.c')
-rw-r--r--tools/dav1d.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/dav1d.c b/tools/dav1d.c
index 736ae3a..a76c8de 100644
--- a/tools/dav1d.c
+++ b/tools/dav1d.c
@@ -36,6 +36,9 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
+#ifdef HAVE_IO_H
+# include <io.h>
+#endif
#include "dav1d/data.h"