Microsoft says that _spawnp must be used instead of spawnp. It fixes a warning when compiled with MinGW 32/64 gcc compilers

master
Christian Jullien 2016-05-16 17:58:56 +02:00
parent 3f233ab127
commit 1339d04759
1 changed files with 1 additions and 1 deletions

2
tcc.c
View File

@ -133,7 +133,7 @@ static void help(void)
#include <process.h>
static int execvp_win32(const char *prog, char **argv)
{
int ret = spawnvp(P_NOWAIT, prog, (const char *const*)argv);
int ret = _spawnvp(P_NOWAIT, prog, (const char *const*)argv);
if (-1 == ret)
return ret;
cwait(&ret, ret, WAIT_CHILD);