From be0e492bf2e8fbeddc01cf29812ffb67db1abf7d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 16 Mar 2025 10:05:17 +0900 Subject: [PATCH] meson: update C standards table for building header tests --- src/systemd/meson.build | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/systemd/meson.build b/src/systemd/meson.build index 06ba4cbc075..eae027dafa2 100644 --- a/src/systemd/meson.build +++ b/src/systemd/meson.build @@ -65,11 +65,12 @@ endif opts = [['c'], ['c', '-ansi'], - ['c', '-std=iso9899:1990'], - ['c', '-std=iso9899:2011']] + ['c', '-std=iso9899:1990'], # C90 + ['c', '-std=iso9899:1999'], # C99 + ['c', '-std=iso9899:2011']] # C11 -foreach opt : ['-std=iso9899:2017', - '-std=c23', +foreach opt : ['-std=iso9899:2018', # C17 + '-std=iso9899:2024', # C23 ] if cc.has_argument(opt) opts += [['c', opt]] -- 2.47.3