[VCSTARTUP] Implement (w)mainCRTStartup

__acrt_initialize is here as a stub to later support linking ucrt statically. When it is statically linked the real function should be called, but when the executable links to ucrtdll, the initialization happens when the DLL is loaded, so we call a stub here.
This commit is contained in:
Timo Kreuzer 2025-01-28 21:56:12 +02:00
parent d243b6cdf3
commit a978879ddb
5 changed files with 136 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#include <internal_shared.h>
extern "C"
__crt_bool __cdecl __acrt_initialize()
{
return true;
}