mdbx++: disable using C++20 concepts for NDK's CLANG < 14.

This commit is contained in:
Leonid Yuriev 2022-01-05 17:15:52 +03:00
parent 9cf18176f0
commit 0df17ed359

View File

@ -195,7 +195,9 @@
#ifndef MDBX_CXX20_CONCEPT #ifndef MDBX_CXX20_CONCEPT
#if defined(DOXYGEN) || \ #if defined(DOXYGEN) || \
(defined(__cpp_concepts) && __cpp_concepts >= 201907L && \ (defined(__cpp_concepts) && __cpp_concepts >= 201907L && \
(!defined(__clang__) || (__clang_major__ >= 12 && !defined(__APPLE__)) || \ (!defined(__clang__) || \
(__clang_major__ >= 12 && !defined(__APPLE__) && \
!defined(__ANDROID_API__)) || \
__clang_major__ >= \ __clang_major__ >= \
/* Hope Apple will fix concepts in AppleClang 14 */ 14)) /* Hope Apple will fix concepts in AppleClang 14 */ 14))
#define MDBX_CXX20_CONCEPT(CONCEPT, NAME) CONCEPT NAME #define MDBX_CXX20_CONCEPT(CONCEPT, NAME) CONCEPT NAME
@ -207,7 +209,9 @@
#ifndef MDBX_ASSERT_CXX20_CONCEPT_SATISFIED #ifndef MDBX_ASSERT_CXX20_CONCEPT_SATISFIED
#if defined(DOXYGEN) || \ #if defined(DOXYGEN) || \
(defined(__cpp_concepts) && __cpp_concepts >= 201907L && \ (defined(__cpp_concepts) && __cpp_concepts >= 201907L && \
(!defined(__clang__) || (__clang_major__ >= 12 && !defined(__APPLE__)) || \ (!defined(__clang__) || \
(__clang_major__ >= 12 && !defined(__APPLE__) && \
!defined(__ANDROID_API__)) || \
__clang_major__ >= \ __clang_major__ >= \
/* Hope Apple will fix concepts in AppleClang 14 */ 14)) /* Hope Apple will fix concepts in AppleClang 14 */ 14))
#define MDBX_ASSERT_CXX20_CONCEPT_SATISFIED(CONCEPT, TYPE) \ #define MDBX_ASSERT_CXX20_CONCEPT_SATISFIED(CONCEPT, TYPE) \
@ -478,7 +482,9 @@ static MDBX_CXX20_CONSTEXPR void *memcpy(void *dest, const void *src,
#if defined(DOXYGEN) || \ #if defined(DOXYGEN) || \
(defined(__cpp_concepts) && __cpp_concepts >= 201907L && \ (defined(__cpp_concepts) && __cpp_concepts >= 201907L && \
(!defined(__clang__) || (__clang_major__ >= 12 && !defined(__APPLE__)) || \ (!defined(__clang__) || \
(__clang_major__ >= 12 && !defined(__APPLE__) && \
!defined(__ANDROID_API__)) || \
__clang_major__ >= \ __clang_major__ >= \
/* Hope Apple will fix concepts in AppleClang 14 */ 14)) /* Hope Apple will fix concepts in AppleClang 14 */ 14))