Skip to content

Commit d039ac3

Browse files
authored
[libcxx] Remove the second inclusion of the system header (#120946)
This was introduced in #119025 and not only seems unnecessary, it broke the build with older versions of glibc.
1 parent 723aeaf commit d039ac3

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

libcxx/include/stdio.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ void perror(const char* s);
106106
# ifndef _LIBCPP_STDIO_H
107107
# define _LIBCPP_STDIO_H
108108

109-
# if __has_include_next(<stdio.h>)
110-
# include_next <stdio.h>
111-
# endif
112-
113109
# ifdef __cplusplus
114110

115111
# undef getc

libcxx/include/stdlib.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ void *aligned_alloc(size_t alignment, size_t size); // C11
9292
# if !defined(_LIBCPP_STDLIB_H)
9393
# define _LIBCPP_STDLIB_H
9494

95-
# if __has_include_next(<stdlib.h>)
96-
# include_next <stdlib.h>
97-
# endif
98-
9995
# ifdef __cplusplus
10096
extern "C++" {
10197
// abs

libcxx/include/wchar.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ size_t wcsrtombs(char* restrict dst, const wchar_t** restrict src, size_t len,
122122
# include <__mbstate_t.h> // provide mbstate_t
123123
# include <stddef.h> // provide size_t
124124

125-
# if __has_include_next(<wchar.h>)
126-
# include_next <wchar.h>
127-
# endif
128-
129125
// Determine whether we have const-correct overloads for wcschr and friends.
130126
# if defined(_WCHAR_H_CPLUSPLUS_98_CONFORMANCE_)
131127
# define _LIBCPP_WCHAR_H_HAS_CONST_OVERLOADS 1

0 commit comments

Comments
 (0)