diff options
author | Martin Storsjö <martin@martin.st> | 2019-02-06 15:20:55 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2019-02-08 01:28:46 +0300 |
commit | e85482baacd9feb689ad5d96d3f39bbfd3473cd6 (patch) | |
tree | 8f41c813d4397e5daaa0486fe850b00eff4c6fb5 /tools/dav1d.c | |
parent | 67f33e680e94e68a233455b6e767dd0789a5d9d8 (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.c | 3 |
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" |