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 /meson.build
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 'meson.build')
-rw-r--r--meson.build4
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