From fc3e80cf6d8847fd5a2313dd7e2079d268f1ec84 Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Wed, 1 May 2019 01:06:13 +0900 Subject: guard include with has_feature clang's sanitizer/msan_interface.h has fallback macros. It causes redefinition of __msan_unpoison(). --- internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal.h') diff --git a/internal.h b/internal.h index f782668bd9..0ce1dcd495 100644 --- a/internal.h +++ b/internal.h @@ -112,7 +112,9 @@ extern "C" { #endif #ifdef HAVE_SANITIZER_MSAN_INTERFACE_H -# include +# if __has_feature(memory_sanitizer) +# include +# endif #endif #if !__has_feature(memory_sanitizer) -- cgit v1.2.3