mdbx: minor fixes/workarounds for CLANG < 9.x

This commit is contained in:
Leonid Yuriev
2021-08-04 14:09:50 +03:00
parent a9cae5e314
commit 4bb0c57e29
2 changed files with 16 additions and 7 deletions

3
mdbx.h
View File

@@ -461,7 +461,8 @@ typedef mode_t mdbx_mode_t;
#endif /* MDBX_PRINTF_ARGS */
#if defined(DOXYGEN) || \
(defined(__cplusplus) && __has_cpp_attribute(maybe_unused) && \
(defined(__cplusplus) && __cplusplus >= 201603 && \
__has_cpp_attribute(maybe_unused) && \
__has_cpp_attribute(maybe_unused) >= 201603) || \
(!defined(__cplusplus) && defined(__STDC_VERSION__) && \
__STDC_VERSION__ > 202005L)