Skip to content
Permalink
Browse files

[libc++] Update feature list for NetBSD

Add NetBSD to the same feature list as Fuchsia since it matches
in available features, effectively enabling aligned_alloc(),
timespec_get() and C11 features.  Remove now-duplicate declaration
of quick_exit() support.

Differential Revision: https://reviews.llvm.org/D71511
  • Loading branch information
mgorny committed Dec 14, 2019
1 parent ff92c56 commit e1882af9f6701c2ddcd2853ffeff456d5a8bf8e3
Showing with 2 additions and 3 deletions.
  1. +1 −2 libcxx/include/__config
  2. +1 −1 libcxx/test/support/test_macros.h
@@ -260,7 +260,6 @@
# else // _BYTE_ORDER == _LITTLE_ENDIAN
# define _LIBCPP_BIG_ENDIAN
# endif // _BYTE_ORDER == _LITTLE_ENDIAN
# define _LIBCPP_HAS_QUICK_EXIT
#endif // __NetBSD__

#if defined(_WIN32)
@@ -354,7 +353,7 @@
# if __ANDROID_API__ >= 29
# define _LIBCPP_HAS_TIMESPEC_GET
# endif
# elif defined(__Fuchsia__) || defined(__wasi__)
# elif defined(__Fuchsia__) || defined(__wasi__) || defined(__NetBSD__)
# define _LIBCPP_HAS_ALIGNED_ALLOC
# define _LIBCPP_HAS_QUICK_EXIT
# define _LIBCPP_HAS_TIMESPEC_GET
@@ -169,7 +169,7 @@
# if __ANDROID_API__ >= 29
# define TEST_HAS_TIMESPEC_GET
# endif
# elif defined(__Fuchsia__) || defined(__wasi__)
# elif defined(__Fuchsia__) || defined(__wasi__) || defined(__NetBSD__)
# define TEST_HAS_ALIGNED_ALLOC
# define TEST_HAS_C11_FEATURES
# define TEST_HAS_TIMESPEC_GET

0 comments on commit e1882af

Please sign in to comment.
You can’t perform that action at this time.