reactos/sdk/lib/vcruntime/__vcrt_init.c
Timo Kreuzer 9186b861a6 [VCRUNTIME][VCSTARTUP] Add separate vcruntime and vcstartup lib
vcruntime contains the code that is linked into ucrtbase (in VS it is also provided as vcruntime140.dll)
vcstartup contains the code that is statically linked into executables that link to ucrtbase.dll. In Visual Studio this is part of msvcrt.lib (the import library for msvcrt), similar to our current msvcrtex, and it gets linked when you link to ucrtbase as well. The name is based on the folder name in the library.
Both libraries share some code, but each file is only compiled once.
2025-02-06 09:17:37 +02:00

36 lines
568 B
C

//
// __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;
}