From: Patrick Palka Date: Wed, 12 Apr 2023 16:40:41 +0000 (-0400) Subject: libstdc++: Ensure headers used by fast_float are included X-Git-Tag: basepoints/gcc-14~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13669111e7219ed1f71b2079c7b5794c11f6e3ce;p=thirdparty%2Fgcc.git libstdc++: Ensure headers used by fast_float are included This makes floating_from_chars.cc explicitly include all headers that are used by the original fast_float amalgamation according to r12-6647-gf5c8b82512f9d3, except: 1. since fast_float doesn't seem to use anything from it 2. since fast_float doesn't seem to use anything directly from it (this header also pulls in ) 3. since std::errc is naturally already available from This avoids potential fast_float build failures on platforms for which some required headers (in particular ) end up not getting transitively included from elsewhere. libstdc++-v3/ChangeLog: * src/c++17/floating_from_chars.cc: Include , , and . --- diff --git a/libstdc++-v3/src/c++17/floating_from_chars.cc b/libstdc++-v3/src/c++17/floating_from_chars.cc index 5d18ca32dbb3..3a411cf546a2 100644 --- a/libstdc++-v3/src/c++17/floating_from_chars.cc +++ b/libstdc++-v3/src/c++17/floating_from_chars.cc @@ -30,14 +30,18 @@ // Prefer to use std::pmr::string if possible, which requires the cxx11 ABI. #define _GLIBCXX_USE_CXX11_ABI 1 +#include #include #include #include +#include +#include #include #include #include #include #include +#include #include #include #include