mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-19 19:39:26 +08:00
mdbx: more/refine C++ crutches for mad MSVC compiler.
This commit is contained in:
14
mdbx.h++
14
mdbx.h++
@@ -14,12 +14,14 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if (!defined(__cplusplus) || __cplusplus < 201103L) && \
|
||||
!(defined( \
|
||||
_MSC_VER) /* MSVC is mad and don't define __cplusplus properly */ \
|
||||
&& _MSC_VER == 1900)
|
||||
#error "C++11 or better is required"
|
||||
#endif
|
||||
#if !defined(__cplusplus) || __cplusplus < 201103L
|
||||
#if !defined(_MSC_VER) || _MSC_VER < 1900
|
||||
#error "C++11 compiler or better is required"
|
||||
#elif _MSC_VER >= 1910
|
||||
#error \
|
||||
"Please add ` /Zc:__cplusplus` to MSVC compiler options to enforce it conform ISO C++"
|
||||
#endif /* MSVC is mad and don't define __cplusplus properly */
|
||||
#endif /* __cplusplus < 201103L */
|
||||
|
||||
#if (defined(_WIN32) || defined(_WIN64)) && MDBX_WITHOUT_MSVC_CRT
|
||||
#error \
|
||||
|
Reference in New Issue
Block a user