Skip to content

Commit 0fd6f19

Browse files
author
Kostya Kortchinsky
committed
[scudo][standalone] Support __BIONIC__
Summary: Some Android builds that we are interested in define `__BIONIC__` but not `__ANDROID__`, so expand `SCUDO_ANDROID` to encompass those. Reviewers: cferris, hctim, pcc, eugenis, morehouse Subscribers: krytarowski, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D71772
1 parent dc03b96 commit 0fd6f19

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler-rt/lib/scudo/standalone/platform.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99
#ifndef SCUDO_PLATFORM_H_
1010
#define SCUDO_PLATFORM_H_
1111

12+
// Transitive includes of stdint.h specify some of the defines checked below.
13+
#include <stdint.h>
14+
1215
#if defined(__linux__)
1316
#define SCUDO_LINUX 1
1417
#else
1518
#define SCUDO_LINUX 0
1619
#endif
1720

18-
#if defined(__ANDROID__)
21+
// See https://android.googlesource.com/platform/bionic/+/master/docs/defines.md
22+
#if defined(__BIONIC__)
1923
#define SCUDO_ANDROID 1
2024
#else
2125
#define SCUDO_ANDROID 0

0 commit comments

Comments
 (0)