diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-03-19 14:33:38 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-03-19 14:33:38 +0000 |
commit | 24e13723f8477d8c42ab8b2a7f4f69fc089842f1 (patch) | |
tree | b2ff89fa4a47ca3bd5e54c1066a1ab80b9b6cef8 /lib/sanitizer_common/sanitizer_allocator.cc | |
parent | 83cb7877f608eb9b3d65981095216842f686c527 (diff) |
[sanitizer] Replace more platform checks with SANITIZER_ constants.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_allocator.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_allocator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_allocator.cc b/lib/sanitizer_common/sanitizer_allocator.cc index 88a3a1b25..c5c2ef552 100644 --- a/lib/sanitizer_common/sanitizer_allocator.cc +++ b/lib/sanitizer_common/sanitizer_allocator.cc @@ -15,7 +15,7 @@ // FIXME: We should probably use more low-level allocator that would // mmap some pages and split them into chunks to fulfill requests. -#if defined(__linux__) && !defined(__ANDROID__) +#if SANITIZER_LINUX && !SANITIZER_ANDROID extern "C" void *__libc_malloc(__sanitizer::uptr size); extern "C" void __libc_free(void *ptr); # define LIBC_MALLOC __libc_malloc |