From 39abd82e5dfb3167dcffe72ede3d8e1b4033e47c Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 5 Nov 2019 09:41:26 +0300 Subject: [PATCH] wscript: silence MSVC tgmath nonsense --- wscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wscript b/wscript index 45c7fd38..c546b036 100644 --- a/wscript +++ b/wscript @@ -254,6 +254,8 @@ def configure(conf): # check if we can use C99 tgmath if conf.check_cc(header_name='tgmath.h', mandatory=False): + if conf.env.COMPILER_CC == 'msvc': + conf.define('_CRT_SILENCE_NONCONFORMING_TGMATH_H', 1) tgmath_usable = conf.check_cc(fragment='''#include int main(void){ return (int)sin(2.0f); }''', msg='Checking if tgmath.h is usable', mandatory=False)