From 6ea60433deffbf2ae9be7d536418b0c390673cc9 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Mon, 9 Jul 2018 09:03:50 +0100 Subject: [PATCH] meson: Remove -std=c99 This flag disable some compiler feature which is used by some system header potentially introducing some limitations. Autotools won't add any flag to limit compiler features to C99, instead it currently only add flags to support C99 when needed. For instance some Posix limitations changes (like _POSIX_OPEN_MAX). As compiler feature for instance _Static_assert is not used. Signed-off-by: Frediano Ziglio Acked-by: Christophe Fergeau --- meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 2b91e82..466bb06 100644 --- a/meson.build +++ b/meson.build @@ -10,8 +10,7 @@ if not meson.is_subproject() endif # some global vars -spice_common_global_cflags = ['-std=c99', - '-DHAVE_CONFIG_H', +spice_common_global_cflags = ['-DHAVE_CONFIG_H', '-DG_LOG_DOMAIN="Spice"', '-Wall', '-Wextra',