mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:04:13 +08:00
mdbx++: add workaround for modern libstd++ with CLANG < 4.x
Change-Id: Ic82694f4f51bfdb2d6f6f072fdf9af791c0eb6f8
This commit is contained in:
parent
f2995ac75b
commit
c076979225
2
.github/actions/spelling/expect.txt
vendored
2
.github/actions/spelling/expect.txt
vendored
@ -110,6 +110,7 @@ bitmaps
|
|||||||
bitmask
|
bitmask
|
||||||
bitness
|
bitness
|
||||||
bitops
|
bitops
|
||||||
|
BITSIZE
|
||||||
blogger
|
blogger
|
||||||
blogs
|
blogs
|
||||||
blogspot
|
blogspot
|
||||||
@ -842,6 +843,7 @@ libmdbx
|
|||||||
libmera
|
libmera
|
||||||
libmithrildb
|
libmithrildb
|
||||||
libpthread
|
libpthread
|
||||||
|
libstdc
|
||||||
LIFORECLAIM
|
LIFORECLAIM
|
||||||
lineno
|
lineno
|
||||||
linkedin
|
linkedin
|
||||||
|
7
mdbx.h++
7
mdbx.h++
@ -15,6 +15,13 @@
|
|||||||
|
|
||||||
#pragma once
|
#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(__cplusplus) || __cplusplus < 201103L
|
||||||
#if !defined(_MSC_VER) || _MSC_VER < 1900
|
#if !defined(_MSC_VER) || _MSC_VER < 1900
|
||||||
#error "C++11 compiler or better is required"
|
#error "C++11 compiler or better is required"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user