mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-13 06:29:11 +00:00
Support thread local storage
This commit is contained in:
parent
91ee2b19d4
commit
55de4ca6b5
197 changed files with 1483 additions and 874 deletions
2
third_party/libcxx/libcxx.mk
vendored
2
third_party/libcxx/libcxx.mk
vendored
|
@ -69,7 +69,7 @@ THIRD_PARTY_LIBCXX_A_SRCS_CC = \
|
|||
|
||||
THIRD_PARTY_LIBCXX_A_SRCS = \
|
||||
$(THIRD_PARTY_LIBCXX_A_SRCS_S) \
|
||||
$(THIRD_PARTY_LIBCXX_A_SRCS_C)
|
||||
$(THIRD_PARTY_LIBCXX_A_SRCS_CC)
|
||||
|
||||
THIRD_PARTY_LIBCXX_A_OBJS = \
|
||||
$(THIRD_PARTY_LIBCXX_A_SRCS_S:%.S=o/$(MODE)/%.o) \
|
||||
|
|
10
third_party/libcxx/random.cc
vendored
10
third_party/libcxx/random.cc
vendored
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "libc/rand/rand.h"
|
||||
#include "third_party/libcxx/__config"
|
||||
|
||||
#if defined(_LIBCPP_USING_WIN32_RANDOM)
|
||||
|
@ -24,15 +25,6 @@
|
|||
#include "third_party/libcxx/stdio.h"
|
||||
#include "third_party/libcxx/stdlib.h"
|
||||
|
||||
#if defined(_LIBCPP_USING_GETENTROPY)
|
||||
#include "libc/isystem/sys/random.h"
|
||||
#elif defined(_LIBCPP_USING_DEV_RANDOM)
|
||||
#include "third_party/libcxx/fcntl.h"
|
||||
#include "third_party/libcxx/unistd.h"
|
||||
#elif defined(_LIBCPP_USING_NACL_RANDOM)
|
||||
#include "third_party/libcxx/nacl/nacl_random.h"
|
||||
#endif
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
#if defined(_LIBCPP_USING_GETENTROPY)
|
||||
|
|
6
third_party/libcxx/stdexcept_default.hh
vendored
6
third_party/libcxx/stdexcept_default.hh
vendored
|
@ -9,12 +9,6 @@
|
|||
#include "third_party/libcxx/refstring.hh"
|
||||
#include "third_party/libcxx/string"
|
||||
|
||||
/* For _LIBCPPABI_VERSION */
|
||||
#if !defined(_LIBCPP_BUILDING_HAS_NO_ABI_LIBRARY) && \
|
||||
(defined(LIBCXX_BUILDING_LIBCXXABI) || defined(LIBCXXRT))
|
||||
#include "third_party/libcxx/cxxabi.h"
|
||||
#endif
|
||||
|
||||
static_assert(sizeof(std::__libcpp_refstring) == sizeof(const char*), "");
|
||||
|
||||
namespace std // purposefully not using versioning namespace
|
||||
|
|
4
third_party/libcxx/system_error.cc
vendored
4
third_party/libcxx/system_error.cc
vendored
|
@ -19,10 +19,6 @@
|
|||
#include "third_party/libcxx/string.h"
|
||||
#include "third_party/libcxx/__debug"
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
#include "third_party/libcxx/android/api-level.h"
|
||||
#endif
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
// class error_category
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue