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:
authorJan Beich <jbeich@FreeBSD.org>2022-10-30 11:20:02 +0300
committerJan Beich <jbeich@FreeBSD.org>2022-10-30 11:48:35 +0300
commit7409a1894c2e9d5291760703da1ce6c95dd7b815 (patch)
tree70ad525fd6857b3d88cab91899da1cc9f28b4104
parent8f16314dba8bd1ec9d958bbb8bfba002967bd6a8 (diff)
build: drop -D_POSIX_C_SOURCE on non-Linux after 6b611d36acab
Non-GNU systems enable extensions (XSI, BSD, GNU) by default.
-rw-r--r--meson.build5
1 files changed, 1 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 99bfea5..bbe1bc8 100644
--- a/meson.build
+++ b/meson.build
@@ -89,15 +89,12 @@ test_args = []
optional_arguments = []
optional_link_arguments = []
-if host_machine.system() == 'linux'
+if host_machine.system() in ['linux', 'gnu']
test_args += '-D_GNU_SOURCE'
add_project_arguments('-D_GNU_SOURCE', language: 'c')
elif host_machine.system() in ['darwin', 'ios', 'tvos']
test_args += '-D_DARWIN_C_SOURCE'
add_project_arguments('-D_DARWIN_C_SOURCE', language: 'c')
-else
- test_args += '-D_POSIX_C_SOURCE=200112L'
- add_project_arguments('-D_POSIX_C_SOURCE=200112L', language: 'c')
endif
if host_machine.system() == 'windows'