mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 03:14:14 +08:00
mdbx: исправление условий для MDBX_DEPRECATED
(backport).
This commit is contained in:
parent
2d2cec094e
commit
e3d4cd5758
11
mdbx.h
11
mdbx.h
@ -343,13 +343,14 @@ typedef mode_t mdbx_mode_t;
|
|||||||
#ifdef __deprecated
|
#ifdef __deprecated
|
||||||
#define MDBX_DEPRECATED __deprecated
|
#define MDBX_DEPRECATED __deprecated
|
||||||
#elif defined(DOXYGEN) || \
|
#elif defined(DOXYGEN) || \
|
||||||
(defined(__cplusplus) && __cplusplus >= 201603L && \
|
(defined(__cplusplus) && __cplusplus >= 201403L && \
|
||||||
__has_cpp_attribute(maybe_unused) && \
|
__has_cpp_attribute(deprecated) && \
|
||||||
__has_cpp_attribute(maybe_unused) >= 201603L) || \
|
__has_cpp_attribute(deprecated) >= 201309L) || \
|
||||||
(!defined(__cplusplus) && defined(__STDC_VERSION__) && \
|
(!defined(__cplusplus) && defined(__STDC_VERSION__) && \
|
||||||
__STDC_VERSION__ > 202005L)
|
__STDC_VERSION__ >= 202304L)
|
||||||
#define MDBX_DEPRECATED [[deprecated]]
|
#define MDBX_DEPRECATED [[deprecated]]
|
||||||
#elif defined(__GNUC__) || __has_attribute(__deprecated__)
|
#elif (defined(__GNUC__) && __GNUC__ > 5) || \
|
||||||
|
(__has_attribute(__deprecated__) && !defined(__GNUC__))
|
||||||
#define MDBX_DEPRECATED __attribute__((__deprecated__))
|
#define MDBX_DEPRECATED __attribute__((__deprecated__))
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#define MDBX_DEPRECATED __declspec(deprecated)
|
#define MDBX_DEPRECATED __declspec(deprecated)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user