Skip to content

Commit 1733145

Browse files
committed
[libc++] Remove _LIBCPP_DISABLE_AVAILABILITY macro
This was slated for removal years ago, so now's a good time to remove it.
1 parent 629a182 commit 1733145

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

libcxx/docs/ReleaseNotes/20.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ Deprecations and Removals
8585
- The function ``__libcpp_verbose_abort()`` is now ``noexcept``, to match ``std::terminate()``. (The combination of
8686
``noexcept`` and ``[[noreturn]]`` has special significance for function effects analysis.)
8787

88+
- The ``_LIBCPP_DISABLE_AVAILABILITY`` macro that was used to force-disable availability markup has now been removed.
89+
Whether availability markup is used by the library is now solely controlled at configuration-time.
90+
8891
Upcoming Deprecations and Removals
8992
----------------------------------
9093

libcxx/include/__configuration/availability.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,6 @@
6767
//
6868
// [1]: https://clang.llvm.org/docs/AttributeReference.html#availability
6969

70-
// For backwards compatibility, allow users to define _LIBCPP_DISABLE_AVAILABILITY
71-
// for a while.
72-
#if defined(_LIBCPP_DISABLE_AVAILABILITY)
73-
# if !defined(_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS)
74-
# define _LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS
75-
# endif
76-
#endif
77-
7870
// Availability markup is disabled when building the library, or when a non-Clang
7971
// compiler is used because only Clang supports the necessary attributes.
8072
#if defined(_LIBCPP_BUILDING_LIBRARY) || defined(_LIBCXXABI_BUILDING_LIBRARY) || !defined(_LIBCPP_COMPILER_CLANG_BASED)

0 commit comments

Comments
 (0)