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

Revert "wscript: check malloc.h first to make checks on Windows slightly faster"

This reverts commit 1464e1e2be.
This commit is contained in:
Alibek Omarov 2023-04-25 12:39:47 +03:00
parent 71c9fd2772
commit c61c84ad4f

View File

@ -346,10 +346,10 @@ def configure(conf):
conf.define('STDINT_H', 'stdint.h' if conf.check_cc(header_name='stdint.h', mandatory=False) else 'pstdint.h')
# check if we can use alloca.h or malloc.h
for hdr in ['malloc.h', 'alloca.h']:
if conf.check_cc(header_name=hdr, mandatory=False):
conf.define('ALLOCA_H', hdr)
break
if conf.check_cc(header_name='alloca.h', mandatory=False):
conf.define('ALLOCA_H', 'alloca.h')
elif conf.check_cc(header_name='malloc.h', mandatory=False):
conf.define('ALLOCA_H', 'malloc.h')
if conf.env.DEST_OS == 'nswitch':
conf.check_cfg(package='solder', args='--cflags --libs', uselib_store='SOLDER')