From: Jonathan Wakely Date: Tue, 13 Jul 2021 11:09:37 +0000 (+0100) Subject: libstdc++: Remove duplicate #include in X-Git-Tag: releases/gcc-11.2.0~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=760baa2de0e8a99c9e25e56dfe94ab95ed64ab6c;p=thirdparty%2Fgcc.git 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. (cherry picked from commit bd1eb556b910fd4853ea83291e495d40adbcdf81) --- 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