Define common feature test macros for all systems
_POSIX_C_SOURCE, _XOPEN_SOURCE and _GNU_SOURCE are also used on Windows. Fix regression introduced by ba547e3895397e3710e7eb14faafbabbd7e3a077.
This commit is contained in:
parent
6abff46c9f
commit
dc0ac01e00
@ -42,6 +42,10 @@ src = [
|
|||||||
|
|
||||||
conf = configuration_data()
|
conf = configuration_data()
|
||||||
|
|
||||||
|
conf.set('_POSIX_C_SOURCE', '200809L')
|
||||||
|
conf.set('_XOPEN_SOURCE', '700')
|
||||||
|
conf.set('_GNU_SOURCE', true)
|
||||||
|
|
||||||
if host_machine.system() == 'windows'
|
if host_machine.system() == 'windows'
|
||||||
src += [
|
src += [
|
||||||
'src/sys/win/file.c',
|
'src/sys/win/file.c',
|
||||||
@ -54,9 +58,6 @@ else
|
|||||||
'src/sys/unix/file.c',
|
'src/sys/unix/file.c',
|
||||||
'src/sys/unix/process.c',
|
'src/sys/unix/process.c',
|
||||||
]
|
]
|
||||||
conf.set('_POSIX_C_SOURCE', '200809L')
|
|
||||||
conf.set('_XOPEN_SOURCE', '700')
|
|
||||||
conf.set('_GNU_SOURCE', true)
|
|
||||||
if host_machine.system() == 'darwin'
|
if host_machine.system() == 'darwin'
|
||||||
conf.set('_DARWIN_C_SOURCE', true)
|
conf.set('_DARWIN_C_SOURCE', true)
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user