aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorChristian Jullien <jullien@coltrane.eligis.com>2016-05-16 17:58:56 +0200
committerChristian Jullien <jullien@coltrane.eligis.com>2016-05-16 17:58:56 +0200
commit1339d0475954fa2278977562b618d9bab044bc82 (patch)
treef1dd6e6b846601548896cae34606d83ab7bddd65 /tcc.c
parent3f233ab12763bea12421eee1a22700dee733784b (diff)
downloadtinycc-1339d0475954fa2278977562b618d9bab044bc82.tar.gz
tinycc-1339d0475954fa2278977562b618d9bab044bc82.tar.bz2
Microsoft says that _spawnp must be used instead of spawnp. It fixes a warning when compiled with MinGW 32/64 gcc compilers
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcc.c b/tcc.c
index 93ed4de..b340d9b 100644
--- a/tcc.c
+++ b/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);