mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00

__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.
18 lines
322 B
C++
18 lines
322 B
C++
//
|
|
// mainCRTStartup.c
|
|
//
|
|
// Copyright (c) 2024 Timo Kreuzer
|
|
//
|
|
// Implementation of ANSI executable entry point.
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
//
|
|
|
|
#include "commonCRTStartup.hpp"
|
|
|
|
extern "C" unsigned long mainCRTStartup(void*)
|
|
{
|
|
__security_init_cookie();
|
|
|
|
return __commonCRTStartup<decltype(main)>();
|
|
}
|