Skip to content

Commit f56972e

Browse files
committed
Implement the infrastructure for feature-test macros. Very few actual feature test macros, though. Reviewed as: https://reviews.llvm.org/D51955
llvm-svn: 342073
1 parent 956ff0f commit f56972e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1535
-11
lines changed

libcxx/include/algorithm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ template <class BidirectionalIterator, class Compare>
646646
#include <iterator>
647647
#include <cstddef>
648648
#include <bit>
649+
#include <version>
649650

650651
#include <__debug>
651652

libcxx/include/any

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ namespace std {
8787
#include <typeinfo>
8888
#include <type_traits>
8989
#include <cstdlib>
90+
#include <version>
9091

9192
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
9293
#pragma GCC system_header

libcxx/include/array

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ template <size_t I, class T, size_t N> const T&& get(const array<T, N>&&) noexce
112112
#include <algorithm>
113113
#include <stdexcept>
114114
#include <cstdlib> // for _LIBCPP_UNREACHABLE
115+
#include <version>
115116
#include <__debug>
116117

117118
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

libcxx/include/atomic

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ void atomic_signal_fence(memory_order m) noexcept;
544544
#include <cstddef>
545545
#include <cstdint>
546546
#include <type_traits>
547+
#include <version>
547548

548549
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
549550
#pragma GCC system_header
@@ -559,10 +560,6 @@ void atomic_signal_fence(memory_order m) noexcept;
559560
#error C++ standard library is incompatible with <stdatomic.h>
560561
#endif
561562

562-
#if _LIBCPP_STD_VER > 14
563-
# define __cpp_lib_atomic_is_always_lock_free 201603L
564-
#endif
565-
566563
#define _LIBCPP_CHECK_STORE_MEMORY_ORDER(__m) \
567564
_LIBCPP_DIAGNOSE_WARNING(__m == memory_order_consume || \
568565
__m == memory_order_acquire || \

libcxx/include/bit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace std {
2121
*/
2222

2323
#include <__config>
24+
#include <version>
2425

2526
#if defined(__IBMCPP__)
2627
#include "support/ibm/support.h"

libcxx/include/chrono

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ constexpr chrono::year operator ""y(unsigned lo
798798
#include <type_traits>
799799
#include <ratio>
800800
#include <limits>
801+
#include <version>
801802

802803
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
803804
#pragma GCC system_header

libcxx/include/cmath

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ long double truncl(long double x);
303303

304304
#include <__config>
305305
#include <math.h>
306+
#include <version>
306307

307308
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
308309
#pragma GCC system_header

libcxx/include/complex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ template<class T, class charT, class traits>
245245
#include <stdexcept>
246246
#include <cmath>
247247
#include <sstream>
248+
#include <version>
248249

249250
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
250251
#pragma GCC system_header

libcxx/include/cstddef

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Types:
3535
*/
3636

3737
#include <__config>
38+
#include <version>
3839

3940
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
4041
#pragma GCC system_header

libcxx/include/deque

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ template <class T, class Allocator>
161161
#include <iterator>
162162
#include <algorithm>
163163
#include <stdexcept>
164+
#include <version>
164165

165166
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
166167
#pragma GCC system_header

0 commit comments

Comments
 (0)