diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-04-03 07:24:35 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-04-03 07:24:35 +0000 |
commit | 46f9395baf65e17f1a3f7a3a1deee72a1560ac53 (patch) | |
tree | 380a88a14afb6e8189f3014e11df6ca88a3d4f37 /lib/sanitizer_common/sanitizer_allocator.cc | |
parent | bb090b56ca283396f17b9a3ef2e8f00544a21385 (diff) |
[Sanitizer] Kill the remainders of platform defines in favor of SANITIZER_ defines
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_allocator.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_allocator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_allocator.cc b/lib/sanitizer_common/sanitizer_allocator.cc index c5c2ef552..a97a70937 100644 --- a/lib/sanitizer_common/sanitizer_allocator.cc +++ b/lib/sanitizer_common/sanitizer_allocator.cc @@ -20,11 +20,11 @@ extern "C" void *__libc_malloc(__sanitizer::uptr size); extern "C" void __libc_free(void *ptr); # define LIBC_MALLOC __libc_malloc # define LIBC_FREE __libc_free -#else // __linux__ && !ANDROID +#else // SANITIZER_LINUX && !SANITIZER_ANDROID # include <stdlib.h> # define LIBC_MALLOC malloc # define LIBC_FREE free -#endif // __linux__ && !ANDROID +#endif // SANITIZER_LINUX && !SANITIZER_ANDROID namespace __sanitizer { |