mirror of
https://github.com/reactos/reactos.git
synced 2025-04-30 02:58:48 +00:00

Imported from https://www.nuget.org/packages/Microsoft.Windows.SDK.CRTSource/10.0.22621.3 License: MIT
19 lines
899 B
C++
19 lines
899 B
C++
//
|
|
// stdio_initializer.cpp
|
|
//
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//
|
|
// CRT initializers and terminators have been extracted from the main CRT sources
|
|
// to enable the CRT DLL to be built with LTCG enabled. The source files in which
|
|
// the CRT initializers and terminators are defined cannot be compiled as /GL
|
|
// because the compiler will optimize them away during link-time code generation.
|
|
// We inhibit this optimization by defining the initializers and terminators in
|
|
// separate source files that are not compiled with /GL.
|
|
//
|
|
#include <corecrt_internal.h>
|
|
|
|
extern "C" int __cdecl __acrt_initialize_stdio();
|
|
extern "C" void __cdecl __acrt_uninitialize_stdio();
|
|
|
|
extern "C" _CRTALLOC(".CRT$XIC") _PIFV const __acrt_stdio_initializer = __acrt_initialize_stdio;
|
|
extern "C" _CRTALLOC(".CRT$XPXA") _PVFV const __acrt_stdio_terminator = __acrt_uninitialize_stdio;
|