mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-29 06:10:09 +08:00
tcc, libtcc: fix build on windows with latest mingw.
This commit is contained in:
parent
bba1c381f4
commit
df0267b287
2
libtcc.c
2
libtcc.c
@ -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
2
tcc.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user