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:
authorSteve Lhomme <slhomme@videolan.org>2018-09-27 15:00:43 +0300
committerSteve Lhomme <slhomme@videolan.org>2018-09-28 16:52:16 +0300
commit92b7e8bd536228b145e6c315987a4908bea3b38a (patch)
tree89b18f192b193d2c0c80c92496f702e51a01272d /meson.build
parent150b4e2c575670c8827765e91793816aae758523 (diff)
detect unistd.h availability
It doesn't exist on MSVC and it's not needed.
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 986b120..1269636 100644
--- a/meson.build
+++ b/meson.build
@@ -137,6 +137,10 @@ elif cc.has_function('_aligned_malloc', prefix: '#include <malloc.h>')
cdata.set('HAVE_ALIGNED_MALLOC', 1)
endif
+if cc.check_header('unistd.h')
+ cdata.set('HAVE_UNISTD_H', 1)
+endif
+
if (get_option('buildtype') != 'debug' and
get_option('buildtype') != 'plain')
add_project_arguments('-fomit-frame-pointer', '-ffast-math',