mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-19 19:39:26 +08:00
mdbx++: add workaround for modern libstd++ with CLANG < 4.x
Change-Id: Ic82694f4f51bfdb2d6f6f072fdf9af791c0eb6f8
This commit is contained in:
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"
|
||||
|
Reference in New Issue
Block a user