build: use C23/C11 if available

C23 is more strict than previous standards, use it if available.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2024-07-09 18:23:07 +02:00
parent 99638501a1
commit f9295d357d

View file

@ -6,7 +6,7 @@ project(
default_options: [
'warning_level=2',
'buildtype=debugoptimized',
'c_std=c99',
'c_std=' + (meson.version().version_compare('>=1.3.0') ? 'c23,c11,c99' : 'c99'),
]
)