mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-30 00:34:56 +00:00
wscript: woops, msvcrt don't actually have stristr
This commit is contained in:
parent
fb43a5590f
commit
854bfb8673
5
wscript
5
wscript
@ -317,10 +317,7 @@ int main(void) { return 0; }''',
|
|||||||
conf.define('_FILE_OFFSET_BITS', 64)
|
conf.define('_FILE_OFFSET_BITS', 64)
|
||||||
else: conf.undefine('_FILE_OFFSET_BITS')
|
else: conf.undefine('_FILE_OFFSET_BITS')
|
||||||
|
|
||||||
if conf.env.DEST_OS == 'win32':
|
if conf.env.DEST_OS != 'win32':
|
||||||
# msvcrt always has stristr
|
|
||||||
conf.define('HAVE_STRCASESTR', 1)
|
|
||||||
else:
|
|
||||||
strcasestr_frag = '''#include <string.h>
|
strcasestr_frag = '''#include <string.h>
|
||||||
int main(int argc, char **argv) { strcasestr(argv[1], argv[2]); return 0; }'''
|
int main(int argc, char **argv) { strcasestr(argv[1], argv[2]); return 0; }'''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user