wscript: woops, msvcrt don't actually have stristr

This commit is contained in:
Alibek Omarov 2022-06-29 04:00:35 +03:00
parent fb43a5590f
commit 854bfb8673
1 changed files with 1 additions and 4 deletions

View File

@ -317,10 +317,7 @@ int main(void) { return 0; }''',
conf.define('_FILE_OFFSET_BITS', 64)
else: conf.undefine('_FILE_OFFSET_BITS')
if conf.env.DEST_OS == 'win32':
# msvcrt always has stristr
conf.define('HAVE_STRCASESTR', 1)
else:
if conf.env.DEST_OS != 'win32':
strcasestr_frag = '''#include <string.h>
int main(int argc, char **argv) { strcasestr(argv[1], argv[2]); return 0; }'''