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