mirror of
https://github.com/isar/libmdbx.git
synced 2025-09-04 13:02:21 +08:00
mdbx: исправление потенциального повторного определения __has_exceptions_disabled
.
This commit is contained in:
2
mdbx.h
2
mdbx.h
@@ -222,7 +222,7 @@ typedef mode_t mdbx_mode_t;
|
||||
#ifndef __has_feature
|
||||
#define __has_feature(x) (0)
|
||||
#define __has_exceptions_disabled (0)
|
||||
#else
|
||||
#elif !defined(__has_exceptions_disabled)
|
||||
#define __has_exceptions_disabled \
|
||||
(__has_feature(cxx_noexcept) && !__has_feature(cxx_exceptions))
|
||||
#endif /* __has_feature */
|
||||
|
Reference in New Issue
Block a user