[UCRT:VCRUNTIME] Implement vcruntime init stubs

This commit is contained in:
Timo Kreuzer 2025-01-17 11:44:15 +02:00
parent 4d80956566
commit 4198ceb83a
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,36 @@
//
// __vcrt_init.c
//
// Copyright (c) 2024 Timo Kreuzer
//
// Implementation of vcruntime initialization and termination functions.
//
// SPDX-License-Identifier: MIT
//
#include <vcruntime_startup.h>
__vcrt_bool __cdecl __vcrt_initialize(void)
{
return 1;
}
__vcrt_bool __cdecl __vcrt_uninitialize(_In_ __vcrt_bool _Terminating)
{
return 1;
}
__vcrt_bool __cdecl __vcrt_uninitialize_critical(void)
{
return 1;
}
__vcrt_bool __cdecl __vcrt_thread_attach(void)
{
return 1;
}
__vcrt_bool __cdecl __vcrt_thread_detach(void)
{
return 1;
}

View file

@ -3,6 +3,7 @@ list(APPEND UCRT_VCRUNTIME_SOURCES
vcruntime/__report_gsfailure.c
vcruntime/__report_rangecheckfailure.c
vcruntime/__security_init_cookie.c
vcruntime/__vcrt_init.c
)
if(${ARCH} STREQUAL "i386")