diff --git a/include/tgmath.h b/include/tgmath.h index fbe1e8248..aba87499c 100644 --- a/include/tgmath.h +++ b/include/tgmath.h @@ -14,16 +14,24 @@ /* tgmath.h synopsis -#include -#include +#include */ -#include -#include +#include <__config> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header #endif +#ifdef __cplusplus + +#include + +#else // __cplusplus + +#include_next + +#endif // __cplusplus + #endif // _LIBCPP_TGMATH_H diff --git a/www/cxx1z_status.html b/www/cxx1z_status.html index e4f624634..5cead9b1c 100644 --- a/www/cxx1z_status.html +++ b/www/cxx1z_status.html @@ -467,7 +467,7 @@ 2824list::sort should say that the order of elements is unspecified if an exception is thrownKonaComplete 2826string_view iterators use old wordingKonaComplete 2834Resolution LWG 2223 is missing wording about end iteratorsKonaComplete - 2835LWG 2536 seems to misspecify <tgmath.h>Kona + 2835LWG 2536 seems to misspecify <tgmath.h>KonaComplete 2837gcd and lcm should support a wider range of input valuesKonaComplete 2838is_literal_type specification needs a little cleanupKonaComplete 2842in_place_t check for optional::optional(U&&) should decay UKonaComplete