From bd1eb556b910fd4853ea83291e495d40adbcdf81 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 13 Jul 2021 12:09:37 +0100 Subject: [PATCH] libstdc++: Remove duplicate #include in When I added the new C++23 constructor I added a conditional include of , which was already being included unconditionally. This removes the unconditional include but changes the condition for the other one, so it's used for C++20 as well. Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * include/std/string_view: Only include once, and only for C++20 and later. --- libstdc++-v3/include/std/string_view | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libstdc++-v3/include/std/string_view b/libstdc++-v3/include/std/string_view index 33e2129383a4..cfdcf28f0261 100644 --- a/libstdc++-v3/include/std/string_view +++ b/libstdc++-v3/include/std/string_view @@ -41,11 +41,10 @@ #include #include #include -#include #include #include -#if __cplusplus > 202002L +#if __cplusplus >= 202002L # include #endif -- 2.47.3