mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx++: add ifndef-guard for _CRT_SECURE_NO_WARNINGS
.
This commit is contained in:
parent
331232858a
commit
5babf0872e
@ -67,7 +67,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#ifndef _CRT_SECURE_NO_WARNINGS
|
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
#endif
|
#endif /* _CRT_SECURE_NO_WARNINGS */
|
||||||
#if _MSC_VER > 1800
|
#if _MSC_VER > 1800
|
||||||
#pragma warning(disable : 4464) /* relative include path contains '..' */
|
#pragma warning(disable : 4464) /* relative include path contains '..' */
|
||||||
#endif
|
#endif
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
// Non-inline part of the libmdbx C++ API (preliminary)
|
// Non-inline part of the libmdbx C++ API (preliminary)
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
#endif
|
#endif /* _CRT_SECURE_NO_WARNINGS */
|
||||||
|
|
||||||
#include "../mdbx.h++"
|
#include "../mdbx.h++"
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
#if !defined(_CRT_SECURE_NO_WARNINGS)
|
#if !defined(_CRT_SECURE_NO_WARNINGS)
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
#endif
|
#endif /* _CRT_SECURE_NO_WARNINGS */
|
||||||
#if !defined(_NO_CRT_STDIO_INLINE) && MDBX_BUILD_SHARED_LIBRARY && \
|
#if !defined(_NO_CRT_STDIO_INLINE) && MDBX_BUILD_SHARED_LIBRARY && \
|
||||||
!defined(xMDBX_TOOLS) && MDBX_WITHOUT_MSVC_CRT
|
!defined(xMDBX_TOOLS) && MDBX_WITHOUT_MSVC_CRT
|
||||||
#define _NO_CRT_STDIO_INLINE
|
#define _NO_CRT_STDIO_INLINE
|
||||||
|
@ -23,7 +23,9 @@
|
|||||||
#define _WIN32_WINNT 0x0601 /* Windows 7 */
|
#define _WIN32_WINNT 0x0601 /* Windows 7 */
|
||||||
#endif
|
#endif
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
#endif /* _CRT_SECURE_NO_WARNINGS */
|
||||||
#pragma warning(push, 1)
|
#pragma warning(push, 1)
|
||||||
#pragma warning(disable : 4548) /* expression before comma has no effect; \
|
#pragma warning(disable : 4548) /* expression before comma has no effect; \
|
||||||
expected expression with side - effect */
|
expected expression with side - effect */
|
||||||
|
Loading…
Reference in New Issue
Block a user