add clang
This commit is contained in:
parent
4715742aa8
commit
9a4b261179
890 changed files with 229323 additions and 20 deletions
18
05/tcc-final/win32/lib/dllcrt1.c
Normal file
18
05/tcc-final/win32/lib/dllcrt1.c
Normal file
|
@ -0,0 +1,18 @@
|
|||
//+---------------------------------------------------------------------------
|
||||
|
||||
#include <tchar.h>
|
||||
#include <windows.h>
|
||||
#include "crtinit.c"
|
||||
|
||||
BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved);
|
||||
|
||||
BOOL WINAPI _dllstart(HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
|
||||
{
|
||||
BOOL bRet;
|
||||
if (dwReason == DLL_PROCESS_ATTACH) /* ignore DLL_THREAD_ATTACH */
|
||||
run_ctors(0, 0, 0);
|
||||
bRet = DllMain (hDll, dwReason, lpReserved);
|
||||
if (dwReason == DLL_PROCESS_DETACH) /* ignore DLL_THREAD_DETACH */
|
||||
run_dtors();
|
||||
return bRet;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue