mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-29 23:19:20 +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
|
||||
bitness
|
||||
bitops
|
||||
BITSIZE
|
||||
blogger
|
||||
blogs
|
||||
blogspot
|
||||
@ -842,6 +843,7 @@ libmdbx
|
||||
libmera
|
||||
libmithrildb
|
||||
libpthread
|
||||
libstdc
|
||||
LIFORECLAIM
|
||||
lineno
|
||||
linkedin
|
||||
|
7
mdbx.h++
7
mdbx.h++
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user