Skip to content
Snippets Groups Projects
Commit 7409a189 authored by Jan Beich's avatar Jan Beich
Browse files

build: drop -D_POSIX_C_SOURCE on non-Linux after 6b611d36

Non-GNU systems enable extensions (XSI, BSD, GNU) by default.
parent 8f16314d
No related branches found
No related tags found
1 merge request!1461build: drop -D_POSIX_C_SOURCE and -D_DARWIN_C_SOURCE
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment