[PATCH] D71772: [scudo][standalone] Support __BIONIC__
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 20 13:04:48 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0fd6f19025a7: [scudo][standalone] Support __BIONIC__ (authored by cryptoad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71772/new/
https://reviews.llvm.org/D71772
Files:
compiler-rt/lib/scudo/standalone/platform.h
Index: compiler-rt/lib/scudo/standalone/platform.h
===================================================================
--- compiler-rt/lib/scudo/standalone/platform.h
+++ compiler-rt/lib/scudo/standalone/platform.h
@@ -9,13 +9,17 @@
#ifndef SCUDO_PLATFORM_H_
#define SCUDO_PLATFORM_H_
+// Transitive includes of stdint.h specify some of the defines checked below.
+#include <stdint.h>
+
#if defined(__linux__)
#define SCUDO_LINUX 1
#else
#define SCUDO_LINUX 0
#endif
-#if defined(__ANDROID__)
+// See https://android.googlesource.com/platform/bionic/+/master/docs/defines.md
+#if defined(__BIONIC__)
#define SCUDO_ANDROID 1
#else
#define SCUDO_ANDROID 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71772.234959.patch
Type: text/x-patch
Size: 668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191220/ae2b2f6f/attachment.bin>
More information about the llvm-commits
mailing list