From 62603aeadc1cb768334184b41965d41bc3f0f5b0 Mon Sep 17 00:00:00 2001 From: Leo Yuriev <leo@yuriev.ru> Date: Wed, 7 Mar 2018 13:06:39 +0300 Subject: [PATCH] mdbx: add ifdef-guard for clang < 3.8 Change-Id: Iba7a90e2548056cbdf07ae471eb002da7145821c --- src/bits.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bits.h b/src/bits.h index f416cb4a..3251f45a 100644 --- a/src/bits.h +++ b/src/bits.h @@ -65,7 +65,15 @@ * But you could remove this #error and try to continue at your own risk. * In such case please don't rise up an issues related ONLY to old compilers. */ -# warning "libmdbx required at least GCC 4.2 compatible C/C++ compiler." +# warning "libmdbx required GCC >= 4.2" +#endif + +#if defined(__clang__) && !__CLANG_PREREQ(3,8) + /* Actualy libmdbx was not tested with CLANG older than 3.8. + * But you could remove this #error and try to continue at your own risk. + * In such case please don't rise up an issues related ONLY to old compilers. + */ +# warning "libmdbx required CLANG >= 3.8" #endif #if defined(__GLIBC__) && !__GLIBC_PREREQ(2,12)