mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-27 15:52:28 +00:00
Upgrade to 2022-era LLVM LIBCXX
This commit is contained in:
parent
2f4ca71f26
commit
8e68384e15
2078 changed files with 165657 additions and 65010 deletions
88
third_party/libcxx/cstdint
vendored
88
third_party/libcxx/cstdint
vendored
|
@ -1,5 +1,5 @@
|
|||
// -*- C++ -*-
|
||||
//===--------------------------- cstdint ----------------------------------===//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
|
@ -10,15 +10,6 @@
|
|||
#ifndef _LIBCPP_CSTDINT
|
||||
#define _LIBCPP_CSTDINT
|
||||
|
||||
#include "libc/isystem/stdint.h"
|
||||
#include "third_party/libcxx/__config"
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
#pragma GCC system_header
|
||||
#endif
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
/*
|
||||
cstdint synopsis
|
||||
|
||||
|
@ -149,42 +140,61 @@ Types:
|
|||
} // std
|
||||
*/
|
||||
|
||||
using::int8_t;
|
||||
using::int16_t;
|
||||
using::int32_t;
|
||||
using::int64_t;
|
||||
#include <__assert> // all public C++ headers provide the assertion handler
|
||||
#include <__config>
|
||||
|
||||
using::uint8_t;
|
||||
using::uint16_t;
|
||||
using::uint32_t;
|
||||
using::uint64_t;
|
||||
#include <stdint.h>
|
||||
|
||||
using::int_least8_t;
|
||||
using::int_least16_t;
|
||||
using::int_least32_t;
|
||||
using::int_least64_t;
|
||||
#ifndef _LIBCPP_STDINT_H
|
||||
# error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. \
|
||||
This usually means that your header search paths are not configured properly. \
|
||||
The header search paths should contain the C++ Standard Library headers before \
|
||||
any C Standard Library, and you are probably using compiler flags that make that \
|
||||
not be the case.
|
||||
#endif
|
||||
|
||||
using::uint_least8_t;
|
||||
using::uint_least16_t;
|
||||
using::uint_least32_t;
|
||||
using::uint_least64_t;
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
using::int_fast8_t;
|
||||
using::int_fast16_t;
|
||||
using::int_fast32_t;
|
||||
using::int_fast64_t;
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
using::uint_fast8_t;
|
||||
using::uint_fast16_t;
|
||||
using::uint_fast32_t;
|
||||
using::uint_fast64_t;
|
||||
using ::int8_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::int16_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::int32_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::int64_t _LIBCPP_USING_IF_EXISTS;
|
||||
|
||||
using::intptr_t;
|
||||
using::uintptr_t;
|
||||
using ::uint8_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::uint16_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::uint32_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::uint64_t _LIBCPP_USING_IF_EXISTS;
|
||||
|
||||
using::intmax_t;
|
||||
using::uintmax_t;
|
||||
using ::int_least8_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::int_least16_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::int_least32_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::int_least64_t _LIBCPP_USING_IF_EXISTS;
|
||||
|
||||
using ::uint_least8_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::uint_least16_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::uint_least32_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::uint_least64_t _LIBCPP_USING_IF_EXISTS;
|
||||
|
||||
using ::int_fast8_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::int_fast16_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::int_fast32_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::int_fast64_t _LIBCPP_USING_IF_EXISTS;
|
||||
|
||||
using ::uint_fast8_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::uint_fast16_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::uint_fast32_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::uint_fast64_t _LIBCPP_USING_IF_EXISTS;
|
||||
|
||||
using ::intptr_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::uintptr_t _LIBCPP_USING_IF_EXISTS;
|
||||
|
||||
using ::intmax_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::uintmax_t _LIBCPP_USING_IF_EXISTS;
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
#endif // _LIBCPP_CSTDINT
|
||||
#endif // _LIBCPP_CSTDINT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue