Microsoft says that _spawnp must be used instead of spawnp. It fixes a warning when compiled with MinGW 32/64 gcc compilers
This commit is contained in:
parent
3f233ab127
commit
1339d04759
1 changed files with 1 additions and 1 deletions
2
tcc.c
2
tcc.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue