]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: move to c_std=gnu11
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 11 Mar 2022 06:13:23 +0000 (15:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 11 Mar 2022 06:13:29 +0000 (15:13 +0900)
Recently, the kernel communitiy started to discuss to move C11 (gnu11) [1],
and it seems to come near future.
Let's also move to c_std=gnu11. Unlike the kernel, we already uses
gnu99, hence hopefully we can move to C11 without changing anything.

[1] https://lore.kernel.org/lkml/CAHk-=wiyCH7xeHcmiFJ-YgXUy2Jaj7pnkdKpcovt8fYbVFW3TA@mail.gmail.com/

meson.build

index 6ce7b01c0b41b39cfe27fc8c3d23fb25a629410b..107192b2112f938f7c0d1081213e77347e6a4580 100644 (file)
@@ -4,7 +4,7 @@ project('systemd', 'c',
         version : '250',
         license : 'LGPLv2+',
         default_options: [
-                'c_std=gnu99',
+                'c_std=gnu11',
                 'prefix=/usr',
                 'sysconfdir=/etc',
                 'localstatedir=/var',