2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 01:47:45 +01:00

wscript: add check for tgmath.h header.

This commit is contained in:
Andrey Akhmichin 2019-10-13 21:00:38 +05:00
parent 11adcd5ac8
commit 23a9ab7b4b

View File

@ -198,6 +198,10 @@ def configure(conf):
conf.env.append_unique('CXXFLAGS', cxxflags)
conf.env.append_unique('LINKFLAGS', linkflags)
# check if we can use C99 tgmath
if conf.check_cc(header_name='tgmath.h', mandatory=False):
conf.env.define('HAVE_TGMATH_H', 1)
if conf.env.COMPILER_CC == 'msvc':
conf.define('_CRT_SECURE_NO_WARNINGS', 1)
conf.define('_CRT_NONSTDC_NO_DEPRECATE', 1)