mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-29 06:10:09 +08:00
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
2
tcc.c
2
tcc.c
@ -133,7 +133,7 @@ static void help(void)
|
|||||||
#include <process.h>
|
#include <process.h>
|
||||||
static int execvp_win32(const char *prog, char **argv)
|
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)
|
if (-1 == ret)
|
||||||
return ret;
|
return ret;
|
||||||
cwait(&ret, ret, WAIT_CHILD);
|
cwait(&ret, ret, WAIT_CHILD);
|
||||||
|
Loading…
Reference in New Issue
Block a user