]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: update C standards table for building header tests 35085/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 16 Mar 2025 01:05:17 +0000 (10:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 16 Mar 2025 01:16:18 +0000 (10:16 +0900)
src/systemd/meson.build

index 06ba4cbc075c58a5ca8425dfce40e86272519133..eae027dafa2109678c1e4465724ab3e2c0b06e65 100644 (file)
@@ -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]]