From 4abac928913228446863f14563f5857fd0e19666 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 7 Mar 2021 00:28:57 +0300 Subject: [PATCH] wscript: try to fix tgmath detection on freebsd --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index d9d09c75..2e8501ba 100644 --- a/wscript +++ b/wscript @@ -276,8 +276,8 @@ def configure(conf): if conf.env.COMPILER_CC == 'msvc': conf.define('_CRT_SILENCE_NONCONFORMING_TGMATH_H', 1) tgmath_usable = conf.check_cc(fragment='''#include - const float val = 2; - int main(void){ return (int)(-asin(val)); }''', + const float val = 2, val2 = 3; + int main(void){ return (int)(-asin(val) + cos(val2)); }''', msg='Checking if tgmath.h is usable', mandatory=False, use='M') conf.define_cond('HAVE_TGMATH_H', tgmath_usable) else: