summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/test_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/support/test_macros.h')
-rw-r--r--libcxx/test/support/test_macros.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h
index df480abbead..f5fbedb5555 100644
--- a/libcxx/test/support/test_macros.h
+++ b/libcxx/test/support/test_macros.h
@@ -153,8 +153,18 @@
# if defined(__FreeBSD__)
// Specifically, FreeBSD does NOT have timespec_get, even though they have all
// the rest of C11 - this is PR#38495
+# define TEST_HAS_ALIGNED_ALLOC
# define TEST_HAS_C11_FEATURES
+# elif defined(__BIONIC__)
+# define TEST_HAS_C11_FEATURES
+# if __ANDROID_API__ >= 28
+# define TEST_HAS_ALIGNED_ALLOC
+# endif
+# if __ANDROID_API__ >= 29
+# define TEST_HAS_TIMESPEC_GET
+# endif
# elif defined(__Fuchsia__) || defined(__wasi__)
+# define TEST_HAS_ALIGNED_ALLOC
# define TEST_HAS_C11_FEATURES
# define TEST_HAS_TIMESPEC_GET
# elif defined(__linux__)
@@ -164,15 +174,18 @@
// newlib, etc may all support these features but need to be configured.
# if defined(TEST_GLIBC_PREREQ)
# if TEST_GLIBC_PREREQ(2, 17)
+# define TEST_HAS_ALIGNED_ALLOC
# define TEST_HAS_TIMESPEC_GET
# define TEST_HAS_C11_FEATURES
# endif
# elif defined(_LIBCPP_HAS_MUSL_LIBC)
+# define TEST_HAS_ALIGNED_ALLOC
# define TEST_HAS_C11_FEATURES
# define TEST_HAS_TIMESPEC_GET
# endif
# elif defined(_WIN32)
# if defined(_MSC_VER) && !defined(__MINGW32__)
+# define TEST_HAS_ALIGNED_ALLOC
# define TEST_HAS_C11_FEATURES // Using Microsoft's C Runtime library
# define TEST_HAS_TIMESPEC_GET
# endif
OpenPOWER on IntegriCloud