mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 16:28:30 +00:00
Release Cosmopolitan v3.6.0
This release is an atomic upgrade to GCC 14.1.0 with C23 and C++23
This commit is contained in:
parent
62ace3623a
commit
5660ec4741
1585 changed files with 117353 additions and 271644 deletions
43
third_party/libcxx/charconv
vendored
43
third_party/libcxx/charconv
vendored
|
@ -28,6 +28,7 @@ namespace std {
|
|||
char* ptr;
|
||||
errc ec;
|
||||
friend bool operator==(const to_chars_result&, const to_chars_result&) = default; // since C++20
|
||||
constexpr explicit operator bool() const noexcept { return ec == errc{}; } // since C++26
|
||||
};
|
||||
|
||||
constexpr to_chars_result to_chars(char* first, char* last, see below value,
|
||||
|
@ -58,6 +59,7 @@ namespace std {
|
|||
const char* ptr;
|
||||
errc ec;
|
||||
friend bool operator==(const from_chars_result&, const from_chars_result&) = default; // since C++20
|
||||
constexpr explicit operator bool() const noexcept { return ec == errc{}; } // since C++26
|
||||
};
|
||||
|
||||
constexpr from_chars_result from_chars(const char* first, const char* last,
|
||||
|
@ -67,23 +69,22 @@ namespace std {
|
|||
|
||||
*/
|
||||
|
||||
#include <__assert> // all public C++ headers provide the assertion handler
|
||||
#include <__charconv/chars_format.h>
|
||||
#include <__charconv/from_chars_integral.h>
|
||||
#include <__charconv/from_chars_result.h>
|
||||
#include <__charconv/tables.h>
|
||||
#include <__charconv/to_chars.h>
|
||||
#include <__charconv/to_chars_base_10.h>
|
||||
#include <__charconv/to_chars_floating_point.h>
|
||||
#include <__charconv/to_chars_integral.h>
|
||||
#include <__charconv/to_chars_result.h>
|
||||
#include <__charconv/traits.h>
|
||||
#include <__config>
|
||||
#include <__debug>
|
||||
#include <__system_error/errc.h>
|
||||
#include <cmath> // for log2f
|
||||
#include <cstdint>
|
||||
#include <limits>
|
||||
|
||||
#if _LIBCPP_STD_VER >= 17
|
||||
# include <__charconv/chars_format.h>
|
||||
# include <__charconv/from_chars_integral.h>
|
||||
# include <__charconv/from_chars_result.h>
|
||||
# include <__charconv/tables.h>
|
||||
# include <__charconv/to_chars.h>
|
||||
# include <__charconv/to_chars_base_10.h>
|
||||
# include <__charconv/to_chars_floating_point.h>
|
||||
# include <__charconv/to_chars_integral.h>
|
||||
# include <__charconv/to_chars_result.h>
|
||||
# include <__charconv/traits.h>
|
||||
#endif // _LIBCPP_STD_VER >= 17
|
||||
|
||||
#include <version>
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
|
@ -93,11 +94,21 @@ _LIBCPP_BEGIN_NAMESPACE_STD
|
|||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 14
|
||||
# include <cerrno>
|
||||
# include <cstddef>
|
||||
# include <initializer_list>
|
||||
# include <new>
|
||||
#endif
|
||||
|
||||
#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
|
||||
# include <cmath>
|
||||
# include <concepts>
|
||||
# include <cstdint>
|
||||
# include <cstdlib>
|
||||
# include <cstring>
|
||||
# include <iosfwd>
|
||||
# include <limits>
|
||||
# include <type_traits>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue