Skip to content

Commit 51f55fa

Browse files
committed
[libc++][C++03] Remove some of the C++03-specific C wrapper headers
1 parent 0f35df3 commit 51f55fa

34 files changed

+486
-1799
lines changed

libcxx/include/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,6 @@ set(files
15941594
__cxx03/cmath
15951595
__cxx03/codecvt
15961596
__cxx03/complex
1597-
__cxx03/complex.h
15981597
__cxx03/condition_variable
15991598
__cxx03/csetjmp
16001599
__cxx03/csignal
@@ -1607,25 +1606,20 @@ set(files
16071606
__cxx03/cstring
16081607
__cxx03/ctgmath
16091608
__cxx03/ctime
1610-
__cxx03/ctype.h
16111609
__cxx03/cuchar
16121610
__cxx03/cwchar
16131611
__cxx03/cwctype
16141612
__cxx03/deque
1615-
__cxx03/errno.h
16161613
__cxx03/exception
16171614
__cxx03/experimental/__config
16181615
__cxx03/experimental/utility
16191616
__cxx03/ext/__hash
16201617
__cxx03/ext/hash_map
16211618
__cxx03/ext/hash_set
1622-
__cxx03/fenv.h
1623-
__cxx03/float.h
16241619
__cxx03/forward_list
16251620
__cxx03/fstream
16261621
__cxx03/functional
16271622
__cxx03/future
1628-
__cxx03/inttypes.h
16291623
__cxx03/iomanip
16301624
__cxx03/ios
16311625
__cxx03/iosfwd
@@ -1652,19 +1646,15 @@ set(files
16521646
__cxx03/sstream
16531647
__cxx03/stack
16541648
__cxx03/stdatomic.h
1655-
__cxx03/stdbool.h
1656-
__cxx03/stddef.h
16571649
__cxx03/stdexcept
16581650
__cxx03/stdint.h
1659-
__cxx03/stdio.h
16601651
__cxx03/stdlib.h
16611652
__cxx03/streambuf
16621653
__cxx03/string
16631654
__cxx03/string.h
16641655
__cxx03/string_view
16651656
__cxx03/strstream
16661657
__cxx03/system_error
1667-
__cxx03/tgmath.h
16681658
__cxx03/thread
16691659
__cxx03/type_traits
16701660
__cxx03/typeindex
@@ -1677,7 +1667,6 @@ set(files
16771667
__cxx03/vector
16781668
__cxx03/version
16791669
__cxx03/wchar.h
1680-
__cxx03/wctype.h
16811670
)
16821671

16831672
configure_file("__config_site.in" "${LIBCXX_GENERATED_INCLUDE_TARGET_DIR}/__config_site" @ONLY)

libcxx/include/__cxx03/__thread/support/pthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <__cxx03/__chrono/duration.h>
1515
#include <__cxx03/__config>
1616
#include <__cxx03/ctime>
17-
#include <__cxx03/errno.h>
17+
#include <errno.h>
1818
#include <pthread.h>
1919
#include <sched.h>
2020

libcxx/include/__cxx03/cctype

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ int toupper(int c);
3636

3737
#include <__cxx03/__config>
3838

39-
#include <__cxx03/ctype.h>
39+
#include <ctype.h>
4040

41-
#ifndef _LIBCPP___CXX03_CTYPE_H
41+
#ifndef _LIBCPP_CTYPE_H
4242
# error <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.h> header. \
4343
This usually means that your header search paths are not configured properly. \
4444
The header search paths should contain the C++ Standard Library headers before \

libcxx/include/__cxx03/cerrno

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Macros:
2424

2525
#include <__cxx03/__config>
2626

27-
#include <__cxx03/errno.h>
27+
#include <errno.h>
2828

29-
#ifndef _LIBCPP___CXX03_ERRNO_H
29+
#ifndef _LIBCPP_ERRNO_H
3030
# error <cerrno> tried including <errno.h> but didn't find libc++'s <errno.h> header. \
3131
This usually means that your header search paths are not configured properly. \
3232
The header search paths should contain the C++ Standard Library headers before \

libcxx/include/__cxx03/cfenv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ int feupdateenv(const fenv_t* envp);
5454

5555
#include <__cxx03/__config>
5656

57-
#include <__cxx03/fenv.h>
57+
#include <fenv.h>
5858

59-
#ifndef _LIBCPP___CXX03_FENV_H
59+
#ifndef _LIBCPP_FENV_H
6060
# error <cfenv> tried including <fenv.h> but didn't find libc++'s <fenv.h> header. \
6161
This usually means that your header search paths are not configured properly. \
6262
The header search paths should contain the C++ Standard Library headers before \

libcxx/include/__cxx03/cfloat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ Macros:
7171

7272
#include <__cxx03/__config>
7373

74-
#include <__cxx03/float.h>
74+
#include <float.h>
7575

76-
#ifndef _LIBCPP___CXX03_FLOAT_H
76+
#ifndef _LIBCPP_FLOAT_H
7777
# error <cfloat> tried including <float.h> but didn't find libc++'s <float.h> header. \
7878
This usually means that your header search paths are not configured properly. \
7979
The header search paths should contain the C++ Standard Library headers before \

libcxx/include/__cxx03/cinttypes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ uintmax_t wcstoumax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int
241241
// [cinttypes.syn]
242242
#include <__cxx03/cstdint>
243243

244-
#include <__cxx03/inttypes.h>
244+
#include <inttypes.h>
245245

246-
#ifndef _LIBCPP___CXX03_INTTYPES_H
246+
#ifndef _LIBCPP_INTTYPES_H
247247
# error <cinttypes> tried including <inttypes.h> but didn't find libc++'s <inttypes.h> header. \
248248
This usually means that your header search paths are not configured properly. \
249249
The header search paths should contain the C++ Standard Library headers before \

libcxx/include/__cxx03/complex.h

Lines changed: 0 additions & 32 deletions
This file was deleted.

libcxx/include/__cxx03/cstddef

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ Types:
3939
#include <__cxx03/__type_traits/is_integral.h>
4040
#include <__cxx03/version>
4141

42-
#include <__cxx03/stddef.h>
42+
#include <stddef.h>
4343

44-
#ifndef _LIBCPP___CXX03_STDDEF_H
44+
#ifndef _LIBCPP_STDDEF_H
4545
# error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
4646
This usually means that your header search paths are not configured properly. \
4747
The header search paths should contain the C++ Standard Library headers before \

libcxx/include/__cxx03/cstdio

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ void perror(const char* s);
9797

9898
#include <__cxx03/__config>
9999

100-
#include <__cxx03/stdio.h>
100+
#include <stdio.h>
101101

102-
#ifndef _LIBCPP___CXX03_STDIO_H
102+
#ifndef _LIBCPP_STDIO_H
103103
# error <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header. \
104104
This usually means that your header search paths are not configured properly. \
105105
The header search paths should contain the C++ Standard Library headers before \

0 commit comments

Comments
 (0)