mirror of
https://github.com/reactos/reactos.git
synced 2025-03-01 03:45:16 +00:00
[UCRT:VCRUNTIME] Implement vcruntime init stubs
This commit is contained in:
parent
4d80956566
commit
4198ceb83a
2 changed files with 37 additions and 0 deletions
36
sdk/lib/ucrt/vcruntime/__vcrt_init.c
Normal file
36
sdk/lib/ucrt/vcruntime/__vcrt_init.c
Normal 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;
|
||||||
|
}
|
|
@ -3,6 +3,7 @@ list(APPEND UCRT_VCRUNTIME_SOURCES
|
||||||
vcruntime/__report_gsfailure.c
|
vcruntime/__report_gsfailure.c
|
||||||
vcruntime/__report_rangecheckfailure.c
|
vcruntime/__report_rangecheckfailure.c
|
||||||
vcruntime/__security_init_cookie.c
|
vcruntime/__security_init_cookie.c
|
||||||
|
vcruntime/__vcrt_init.c
|
||||||
)
|
)
|
||||||
|
|
||||||
if(${ARCH} STREQUAL "i386")
|
if(${ARCH} STREQUAL "i386")
|
||||||
|
|
Loading…
Reference in a new issue