Commit 9827b8ad authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Define __ADDRESS_SANITIZER__ if compiling under clang's AddressSanitizer

(cherry picked from commit e1ce3a3d)
parent 68c57301
......@@ -208,6 +208,15 @@
#define ISC_UNREACHABLE()
#endif
#if !defined(__has_feature)
#define __has_feature(x) 0
#endif
/* GCC defines __ADDRESS_SANITIZER__, so reuse the macro for clang */
#if __has_feature(address_sanitizer)
#define __ADDRESS_SANITIZER__
#endif
#ifdef UNIT_TESTING
extern void mock_assert(const int result, const char* const expression,
const char * const file, const int line);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment