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 /meson.build | |
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 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index de08a58..d096239 100644 --- a/meson.build +++ b/meson.build @@ -124,6 +124,10 @@ if cc.check_header('unistd.h') cdata.set('HAVE_UNISTD_H', 1) endif +if cc.check_header('io.h') + cdata.set('HAVE_IO_H', 1) +endif + # Function checks |