[llvm-commits] [compiler-rt] r153379 - /compiler-rt/trunk/lib/asan/asan_interceptors.cc
Alexey Samsonov
samsonov at google.com
Sat Mar 24 03:12:58 PDT 2012
Author: samsonov
Date: Sat Mar 24 05:12:58 2012
New Revision: 153379
URL: http://llvm.org/viewvc/llvm-project?rev=153379&view=rev
Log:
[ASan] revert r153378
Modified:
compiler-rt/trunk/lib/asan/asan_interceptors.cc
Modified: compiler-rt/trunk/lib/asan/asan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_interceptors.cc?rev=153379&r1=153378&r2=153379&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Sat Mar 24 05:12:58 2012
@@ -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.
More information about the llvm-commits
mailing list