tinycc/win32/lib/dllcrt1.c

19 lines
566 B
C
Raw Normal View History

2005-04-17 17:10:37 +04:00
//+---------------------------------------------------------------------------
#include <tchar.h>
2005-04-17 17:10:37 +04:00
#include <windows.h>
#include "crtinit.c"
BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved);
2005-04-17 17:10:37 +04:00
BOOL WINAPI _dllstart(HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
2005-04-17 17:10:37 +04:00
{
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;
2005-04-17 17:10:37 +04:00
}