Merge branch 'wip/stdc99' into 'master'

build: Use Meson built-in option c_std instead of -std=gnu99

See merge request GNOME/libglnx!28
This commit is contained in:
Phaedrus Leeds
2022-02-18 13:10:00 +00:00

View File

@@ -1,7 +1,12 @@
project('libglnx', 'c')
project(
'libglnx',
'c',
default_options : [
'c_std=gnu99',
],
)
add_project_arguments('-D_GNU_SOURCE', language: 'c')
add_project_arguments('-std=gnu99', language: 'c')
add_project_arguments('-Wno-unused-local-typedefs', language: 'c')
cc = meson.get_compiler('c')