mdbx++: add workaround for modern libstd++ with CLANG < 4.x

Change-Id: Ic82694f4f51bfdb2d6f6f072fdf9af791c0eb6f8
This commit is contained in:
Leonid Yuriev 2022-01-15 18:44:37 +03:00
parent f2995ac75b
commit c076979225
2 changed files with 9 additions and 0 deletions

View File

@ -110,6 +110,7 @@ bitmaps
bitmask
bitness
bitops
BITSIZE
blogger
blogs
blogspot
@ -842,6 +843,7 @@ libmdbx
libmera
libmithrildb
libpthread
libstdc
LIFORECLAIM
lineno
linkedin

View File

@ -15,6 +15,13 @@
#pragma once
/* Workaround for modern libstdc++ with CLANG < 4.x */
#if defined(__SIZEOF_INT128__) && !defined(__GLIBCXX_TYPE_INT_N_0) && \
defined(__clang__) && __clang_major__ < 4
#define __GLIBCXX_BITSIZE_INT_N_0 128
#define __GLIBCXX_TYPE_INT_N_0 __int128
#endif /* Workaround for modern libstdc++ with CLANG < 4.x */
#if !defined(__cplusplus) || __cplusplus < 201103L
#if !defined(_MSC_VER) || _MSC_VER < 1900
#error "C++11 compiler or better is required"