From 1339d0475954fa2278977562b618d9bab044bc82 Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Mon, 16 May 2016 17:58:56 +0200 Subject: [PATCH] Microsoft says that _spawnp must be used instead of spawnp. It fixes a warning when compiled with MinGW 32/64 gcc compilers --- tcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcc.c b/tcc.c index 93ed4dee..b340d9bd 100644 --- a/tcc.c +++ b/tcc.c @@ -133,7 +133,7 @@ static void help(void) #include 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); -- 2.11.4.GIT