Revert spawnvp param cast and use no-incompatible-pointer-types in build-tcc.bat

This commit is contained in:
Vlad Vissoultchev
2016-03-14 18:06:42 +02:00
parent 9d778c7bb6
commit 712eca44d5
2 changed files with 3 additions and 3 deletions

2
tcc.c
View File

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