[PATCH] D71772: [scudo][standalone] Support __BIONIC__
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 20 11:21:08 PST 2019
cryptoad updated this revision to Diff 234933.
cryptoad added a comment.
Correcting comment typo.
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.234933.patch
Type: text/x-patch
Size: 668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191220/7d428844/attachment-0001.bin>
More information about the llvm-commits
mailing list