From beed84b63136603600528c0f48bcf93f6cb51de4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 Nov 2020 20:05:49 +0100 Subject: Use C11 if possible --- wscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index 49f16660..cca050b5 100644 --- a/wscript +++ b/wscript @@ -42,7 +42,9 @@ def options(ctx): def configure(conf): conf.load('compiler_c', cache=True) conf.load('autowaf', cache=True) - autowaf.set_c_lang(conf, 'c99') + + if not autowaf.set_c_lang(conf, 'c11', mandatory=False): + autowaf.set_c_lang(conf, 'c99') if Options.options.strict: # Check for programs used by lint target -- cgit v1.2.1