From 9285db6ec206d9724b38981780cb1c0838b88b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Sun, 12 Jun 2022 20:09:27 +0300 Subject: [PATCH] mdbx-test: add workaround for modern libstd++ with CLANG < 4.x --- test/base.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/base.h b/test/base.h index 0c3d8932..4c113f72 100644 --- a/test/base.h +++ b/test/base.h @@ -18,6 +18,13 @@ #define NOMINMAX #endif +/* 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(_WIN32) || defined(_WIN64) || defined(_WINDOWS) #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0601 /* Windows 7 */