STL/stl/inc/use_ansi.h

58 строки
1.3 KiB
C++

// use_ansi.h internal header
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef _USE_ANSI_CPP
#define _USE_ANSI_CPP
#ifdef _CRTBLD
#define _CRT_NOPRAGMA_LIBS
#else
#undef _CRT_NOPRAGMA_LIBS
#endif
#ifndef _CRT_NOPRAGMA_LIBS
#ifndef _M_CEE_PURE
#undef _DEBUG_AFFIX
#undef _IDL_AFFIX
#undef _IDL_DEFAULT
#undef _LIB_STEM
#ifdef _DEBUG
#define _DEBUG_AFFIX "d"
#define _IDL_DEFAULT 2
#else // ^^^ defined(_DEBUG) / !defined(_DEBUG) vvv
#define _DEBUG_AFFIX ""
#define _IDL_DEFAULT 0
#endif // ^^^ !defined(_DEBUG) ^^^
#if defined(_DLL) && !defined(_STATIC_CPPLIB)
#define _LIB_STEM "msvcprt"
#else // ^^^ defined(_DLL) && !defined(_STATIC_CPPLIB) / !defined(_DLL) || defined(_STATIC_CPPLIB) vvv
#define _LIB_STEM "libcpmt"
#if _ITERATOR_DEBUG_LEVEL != _IDL_DEFAULT
#define _IDL_AFFIX _STL_STRINGIZE(_ITERATOR_DEBUG_LEVEL)
#endif // _ITERATOR_DEBUG_LEVEL != _IDL_DEFAULT
#endif // ^^^ !defined(_DLL) || defined(_STATIC_CPPLIB) ^^^
#ifndef _IDL_AFFIX
#define _IDL_AFFIX ""
#endif
#pragma comment(lib, _LIB_STEM _DEBUG_AFFIX _IDL_AFFIX)
#undef _DEBUG_AFFIX
#undef _IDL_AFFIX
#undef _IDL_DEFAULT
#undef _LIB_STEM
#endif // !defined(_M_CEE_PURE)
#endif // !defined(_CRT_NOPRAGMA_LIBS)
#endif // _USE_ANSI_CPP