[libcxx-commits] [PATCH] D137128: [libc++][Android] Include stdlib.h to define __BIONIC__
Ryan Prichard via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Oct 31 15:47:38 PDT 2022
rprichard created this revision.
rprichard added reviewers: ldionne, danalbert.
Herald added a subscriber: danielkiss.
Herald added a project: All.
rprichard requested review of this revision.
Herald added a project: libc++abi.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++abi.
__ANDROID__ is a built-in compiler macro, but __BIONIC__ is defined by
the libc header.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137128
Files:
libcxxabi/test/forced_unwind4.pass.cpp
Index: libcxxabi/test/forced_unwind4.pass.cpp
===================================================================
--- libcxxabi/test/forced_unwind4.pass.cpp
+++ libcxxabi/test/forced_unwind4.pass.cpp
@@ -13,6 +13,8 @@
// the child_thread. This test ensures sigretrun is handled correctly (see:
// UnwindCursor<A, R>::setInfoForSigReturn).
+#include <cstdlib> // defines __BIONIC__
+
// Android/Bionic does not support pthread_cancel.
#ifdef __BIONIC__
int main() {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137128.472164.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20221031/7692307a/attachment.bin>
More information about the libcxx-commits
mailing list