diff options
-rw-r--r-- | compiler-rt/lib/asan/asan_interceptors.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/asan_interceptors.cc b/compiler-rt/lib/asan/asan_interceptors.cc index 6bef78b6d35..7e720d30223 100644 --- a/compiler-rt/lib/asan/asan_interceptors.cc +++ b/compiler-rt/lib/asan/asan_interceptors.cc @@ -26,8 +26,17 @@ // Use macro to describe if specific function should be // intercepted on a given platform. -#define ASAN_INTERCEPT_STRTOLL !defined(_WIN32) -#define ASAN_INTERCEPT_STRNLEN !defined(__APPLE__) +#if !defined(_WIN32) +# define ASAN_INTERCEPT_STRTOLL 1 +#else +# define ASAN_INTERCEPT_STRTOLL 0 +#endif + +#if !defined(__APPLE__) +# define ASAN_INTERCEPT_STRNLEN 1 +#else +# define ASAN_INTERCEPT_STRNLEN 0 +#endif // Use extern declarations of intercepted functions on Mac and Windows // to avoid including system headers. |