[ASan] simplify ASAN_INTERCEPT_* definitions

llvm-svn: 153378
This commit is contained in:
Alexey Samsonov 2012-03-24 09:47:56 +00:00
parent 78481835ae
commit 01da1055d3
1 changed files with 2 additions and 11 deletions

View File

@ -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.