mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-10 21:09:07 +01:00
public: wscript: always define alloca header as malloc.h on Win32
This commit is contained in:
parent
151405618f
commit
c13c1f2577
@ -71,7 +71,11 @@ def configure(conf):
|
||||
conf.env.DEFINES_export = list(conf.env.EXPORT_DEFINES_LIST)
|
||||
|
||||
# check platform-specific header name for alloca(3)
|
||||
if conf.simple_check(ALLOCA_TEST % 'alloca.h', msg='alloca in alloca.h'):
|
||||
if conf.env.DEST_OS == 'win32':
|
||||
# don't waste time on Win32, it's documented to be always in malloc.h.
|
||||
# (plus test can fail because alloca is underscore-prefixed, e.g. _alloca)
|
||||
conf.export_define('ALLOCA_H', '<malloc.h>')
|
||||
elif conf.simple_check(ALLOCA_TEST % 'alloca.h', msg='alloca in alloca.h'):
|
||||
conf.export_define('ALLOCA_H', '<alloca.h>')
|
||||
elif conf.simple_check(ALLOCA_TEST % 'malloc.h', msg='alloca in malloc.h'):
|
||||
conf.export_define('ALLOCA_H', '<malloc.h>')
|
||||
|
Loading…
Reference in New Issue
Block a user