From f76c5188fb81a838ced11a4a865c1285f078fcc7 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Wed, 7 Mar 2018 13:07:17 +0300 Subject: [PATCH] mdbx: add stubs for __has_warning and __has_include. Change-Id: Ic037a38d254e6d986b84a5bfd48106e43cf80320 --- src/defs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/defs.h b/src/defs.h index 0dcfde66..7c3bc1d5 100644 --- a/src/defs.h +++ b/src/defs.h @@ -59,6 +59,14 @@ # define __has_builtin(x) (0) #endif +#ifndef __has_warning +# define __has_warning(x) (0) +#endif + +#ifndef __has_include +# define __has_include(x) (0) +#endif + #if __has_feature(thread_sanitizer) # define __SANITIZE_THREAD__ 1 #endif