mirror of
https://github.com/Chuyu-Team/VC-LTL5.git
synced 2026-10-18 22:00:51 +08:00
32 lines
606 B
C++
32 lines
606 B
C++
//
|
|
// ncommode.cpp
|
|
//
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//
|
|
// Defines _commode, which sets the default file commit mode to nocommit.
|
|
//
|
|
#include <corecrt_internal_stdio.h>
|
|
|
|
|
|
#undef _commode
|
|
|
|
// Set default file commit mode to nocommit
|
|
namespace LTL
|
|
{
|
|
extern "C" __declspec(dllimport) extern int _commode;
|
|
}
|
|
|
|
#if defined _M_AMD64 || defined _M_ARM64 || defined _M_ARM
|
|
|
|
#if WindowsTargetPlatformMinVersion < WindowsTargetPlatformWindows10_10240
|
|
extern "C" int* __cdecl __p__commode()
|
|
{
|
|
return <L::_commode;
|
|
}
|
|
|
|
_LCRT_DEFINE_IAT_SYMBOL(__p__commode);
|
|
|
|
#endif
|
|
|
|
#endif
|