summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2019-05-01 01:06:13 +0900
committerNARUSE, Yui <naruse@airemix.jp>2019-05-01 01:07:05 +0900
commitfc3e80cf6d8847fd5a2313dd7e2079d268f1ec84 (patch)
tree5ee3e3223012f618efc6b3280d4545a2ac1509cb /internal.h
parent3de03544ff9fba80039460f2e2cd864010bf8cba (diff)
guard include with has_feature
clang's sanitizer/msan_interface.h has fallback macros. It causes redefinition of __msan_unpoison().
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h4
1 files changed, 3 insertions, 1 deletions
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 <sanitizer/msan_interface.h>
+# if __has_feature(memory_sanitizer)
+# include <sanitizer/msan_interface.h>
+# endif
#endif
#if !__has_feature(memory_sanitizer)