diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-03-24 10:12:58 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-03-24 10:12:58 +0000 |
commit | f71cb8d3073986a9eff65ba42e1019a1e554829d (patch) | |
tree | 90ade80eb2f729cb9c0bda48c6bdb5a2482ac355 | |
parent | 01da1055d30066f95a14b1f41213d5556e1f4c4f (diff) | |
download | bcm5719-llvm-f71cb8d3073986a9eff65ba42e1019a1e554829d.tar.gz bcm5719-llvm-f71cb8d3073986a9eff65ba42e1019a1e554829d.zip |
[ASan] revert r153378
llvm-svn: 153379
-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. |