Skip to content

Commit afae1a5

Browse files
authored
[libc++] Remove _LIBCPP_DISABLE_AVAILABILITY macro (llvm#112952)
This was slated for removal years ago, so now's a good time to remove it.
1 parent cf9b428 commit afae1a5

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

libcxx/docs/ReleaseNotes/20.rst

+3
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ Deprecations and Removals
102102
headers as an extension and only deprecates them. The ``_LIBCPP_DISABLE_DEPRECATION_WARNINGS`` macro can be defined to
103103
suppress deprecation for these headers.
104104

105+
- The ``_LIBCPP_DISABLE_AVAILABILITY`` macro that was used to force-disable availability markup has now been removed.
106+
Whether availability markup is used by the library is now solely controlled at configuration-time.
107+
105108
Upcoming Deprecations and Removals
106109
----------------------------------
107110

libcxx/include/__configuration/availability.h

-7
Original file line numberDiff line numberDiff line change
@@ -67,13 +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-
# undef _LIBCPP_HAS_VENDOR_AVAILABILITY_ANNOTATIONS
74-
# define _LIBCPP_HAS_VENDOR_AVAILABILITY_ANNOTATIONS 0
75-
#endif
76-
7770
// Availability markup is disabled when building the library, or when a non-Clang
7871
// compiler is used because only Clang supports the necessary attributes.
7972
#if defined(_LIBCPP_BUILDING_LIBRARY) || defined(_LIBCXXABI_BUILDING_LIBRARY) || !defined(_LIBCPP_COMPILER_CLANG_BASED)

0 commit comments

Comments
 (0)