Skip to content

Commit b031201

Browse files
committed
[libc++][C++03] Fix modules
1 parent 932fa0e commit b031201

File tree

18 files changed

+1786
-1639
lines changed

18 files changed

+1786
-1639
lines changed

libcxx/include/__cxx03/__algorithm/find.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <__cxx03/__fwd/bit_reference.h>
2121
#include <__cxx03/__iterator/segmented_iterator.h>
2222
#include <__cxx03/__string/constexpr_c_functions.h>
23+
#include <__cxx03/__type_traits/invoke.h>
2324
#include <__cxx03/__type_traits/is_integral.h>
2425
#include <__cxx03/__type_traits/is_same.h>
2526
#include <__cxx03/__type_traits/is_signed.h>

libcxx/include/__cxx03/__algorithm/is_permutation.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <__cxx03/__iterator/distance.h>
1818
#include <__cxx03/__iterator/iterator_traits.h>
1919
#include <__cxx03/__iterator/next.h>
20+
#include <__cxx03/__type_traits/integral_constant.h>
2021
#include <__cxx03/__type_traits/invoke.h>
2122
#include <__cxx03/__type_traits/is_callable.h>
2223
#include <__cxx03/__utility/move.h>

libcxx/include/__cxx03/__algorithm/sort.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <__cxx03/__iterator/iterator_traits.h>
2828
#include <__cxx03/__type_traits/conditional.h>
2929
#include <__cxx03/__type_traits/disjunction.h>
30+
#include <__cxx03/__type_traits/integral_constant.h>
3031
#include <__cxx03/__type_traits/is_arithmetic.h>
3132
#include <__cxx03/__type_traits/is_constant_evaluated.h>
3233
#include <__cxx03/__utility/move.h>

libcxx/include/__cxx03/__functional/bind.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
#include <__cxx03/__config>
1414
#include <__cxx03/__functional/weak_result_type.h>
1515
#include <__cxx03/__fwd/functional.h>
16+
#include <__cxx03/__type_traits/conditional.h>
1617
#include <__cxx03/__type_traits/decay.h>
1718
#include <__cxx03/__type_traits/invoke.h>
1819
#include <__cxx03/__type_traits/is_reference_wrapper.h>
20+
#include <__cxx03/__type_traits/is_same.h>
1921
#include <__cxx03/__type_traits/is_void.h>
2022
#include <__cxx03/__type_traits/remove_cvref.h>
2123
#include <__cxx03/cstddef>

libcxx/include/__cxx03/__random/generate_canonical.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include <__cxx03/__config>
1313
#include <__cxx03/__random/log2.h>
14+
#include <__cxx03/cstddef>
1415
#include <__cxx03/cstdint>
1516
#include <__cxx03/limits>
1617

libcxx/include/__cxx03/array

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ template <size_t I, class T, size_t N> const T&& get(const array<T, N>&&) noexce
135135
#include <__cxx03/__utility/integer_sequence.h>
136136
#include <__cxx03/__utility/move.h>
137137
#include <__cxx03/__utility/unreachable.h>
138+
#include <__cxx03/cstddef>
138139
#include <__cxx03/stdexcept>
139140
#include <__cxx03/version>
140141

libcxx/include/__cxx03/cmath

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ constexpr long double lerp(long double a, long double b, long double t) noexcept
324324
#include <__cxx03/limits>
325325
#include <__cxx03/version>
326326

327-
#include <__cxx03/math.h>
327+
#include <math.h>
328328

329-
#ifndef _LIBCPP___CXX03_MATH_H
329+
#ifndef _LIBCPP_MATH_H
330330
# error <cmath> tried including <math.h> but didn't find libc++'s <math.h> header. \
331331
This usually means that your header search paths are not configured properly. \
332332
The header search paths should contain the C++ Standard Library headers before \

libcxx/include/__cxx03/cstring

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ size_t strlen(const char* s);
5959
#include <__cxx03/__config>
6060
#include <__cxx03/__type_traits/is_constant_evaluated.h>
6161

62-
#include <__cxx03/string.h>
62+
#include <string.h>
6363

6464
#ifndef _LIBCPP___CXX03_STRING_H
6565
# error <cstring> tried including <string.h> but didn't find libc++'s <string.h> header. \

libcxx/include/__cxx03/future

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ template <class R, class Alloc> struct uses_allocator<packaged_task<R>, Alloc>;
384384
# include <__cxx03/__system_error/error_code.h>
385385
# include <__cxx03/__system_error/error_condition.h>
386386
# include <__cxx03/__type_traits/aligned_storage.h>
387+
# include <__cxx03/__type_traits/invoke.h>
387388
# include <__cxx03/__type_traits/strip_signature.h>
388389
# include <__cxx03/__utility/auto_cast.h>
389390
# include <__cxx03/__utility/forward.h>

libcxx/include/__cxx03/map

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,9 @@ erase_if(multimap<Key, T, Compare, Allocator>& c, Predicate pred); // C++20
584584
#include <__cxx03/__memory/allocator.h>
585585
#include <__cxx03/__tree>
586586
#include <__cxx03/__type_traits/is_allocator.h>
587+
#include <__cxx03/__type_traits/is_empty.h>
588+
#include <__cxx03/__type_traits/is_final.h>
589+
#include <__cxx03/__type_traits/type_identity.h>
587590
#include <__cxx03/__utility/forward.h>
588591
#include <__cxx03/__utility/piecewise_construct.h>
589592
#include <__cxx03/__utility/swap.h>

0 commit comments

Comments
 (0)