tcc, libtcc: fix build on windows with latest mingw.

This commit is contained in:
minux 2014-04-11 23:49:53 -04:00
parent bba1c381f4
commit df0267b287
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ void dlclose(void *p)
#endif
#ifdef LIBTCC_AS_DLL
BOOL WINAPI DllMain (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (DLL_PROCESS_ATTACH == dwReason)
tcc_module = hDll;

2
tcc.c
View File

@ -78,7 +78,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);