From 4a2c9c285fba19d432f004c4e0a247af1e8d86f0 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 28 Jul 2022 16:01:52 -0700 Subject: [PATCH] meson: use C99 as the standard autoconf uses either C99 or Gnu99. Meson does not provide a graceful way to select gnu99 if possible or c99 (though there are several proposals currently happening to get there), so I've selected c99 as the conservative default. Without this, the compiler uses whatever it's default happens to be, which may or may not work out correctly, and hides bugs from CI that are present with c99 as the default. --- meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 986b534..4278f1c 100644 --- a/meson.build +++ b/meson.build @@ -1,8 +1,9 @@ project('pkgconf', 'c', version : '1.8.0', license : 'ISC', - meson_version : '>=0.47') - + meson_version : '>=0.47', + default_options : ['c_std=c99'], +) cc = meson.get_compiler('c')