diff options
Diffstat (limited to 'extras')
-rw-r--r-- | extras/autowaf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/autowaf.py b/extras/autowaf.py index f932e41..662f9b7 100644 --- a/extras/autowaf.py +++ b/extras/autowaf.py @@ -689,7 +689,7 @@ def set_c_lang(conf, lang, **kwargs): # MSVC has no hope or desire to compile C99, just compile as C++ conf.env.append_unique('CFLAGS', ['/TP']) return True - else: + elif not (lang == 'c99' and '-std=c11' in conf.env.CFLAGS): flag = '-std=%s' % lang if conf.check(features='c cstlib', cflags=flag_check_flags(conf, conf.env.CFLAGS) + [flag], |