mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Restore strict header checking
This commit is contained in:
parent
b212f49ef4
commit
ad775a75b8
16 changed files with 43 additions and 41 deletions
3
third_party/libcxx/__bsd_locale_fallbacks.h
vendored
3
third_party/libcxx/__bsd_locale_fallbacks.h
vendored
|
@ -16,7 +16,10 @@
|
|||
#include "third_party/libcxx/stdlib.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
#include "libc/str/unicode.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/str/locale.h"
|
||||
#include "third_party/libcxx/memory"
|
||||
#include "third_party/libcxx/__locale"
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
#pragma GCC system_header
|
||||
|
|
1
third_party/libcxx/__config
vendored
1
third_party/libcxx/__config
vendored
|
@ -1152,6 +1152,7 @@ extern "C" _LIBCPP_FUNC_VIS void __sanitizer_annotate_contiguous_container(
|
|||
!defined(_LIBCPP_HAS_EXTERNAL_ATOMIC_IMP)) \
|
||||
|| defined(_LIBCPP_HAS_NO_THREADS)
|
||||
# define _LIBCPP_HAS_NO_ATOMIC_HEADER
|
||||
# define _LIBCPP_ATOMIC_FLAG_TYPE bool
|
||||
#else
|
||||
# ifndef _LIBCPP_ATOMIC_FLAG_TYPE
|
||||
# define _LIBCPP_ATOMIC_FLAG_TYPE bool
|
||||
|
|
10
third_party/libcxx/atomic
vendored
10
third_party/libcxx/atomic
vendored
|
@ -21,16 +21,6 @@
|
|||
#pragma GCC system_header
|
||||
#endif
|
||||
|
||||
#ifdef _LIBCPP_HAS_NO_THREADS
|
||||
# error <atomic> is not supported on this single threaded system
|
||||
#endif
|
||||
#ifdef _LIBCPP_HAS_NO_ATOMIC_HEADER
|
||||
# error <atomic> is not implemented
|
||||
#endif
|
||||
#ifdef kill_dependency
|
||||
# error C++ standard library is incompatible with <stdatomic.h>
|
||||
#endif
|
||||
|
||||
#define _LIBCPP_CHECK_STORE_MEMORY_ORDER(__m) \
|
||||
_LIBCPP_DIAGNOSE_WARNING(__m == memory_order_consume || \
|
||||
__m == memory_order_acquire || \
|
||||
|
|
1
third_party/libcxx/clocale
vendored
1
third_party/libcxx/clocale
vendored
|
@ -36,6 +36,7 @@ lconv* localeconv();
|
|||
*/
|
||||
|
||||
#include "third_party/libcxx/__config"
|
||||
#include "libc/str/unicode.h"
|
||||
#include "libc/str/locale.h"
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
|
|
7
third_party/libcxx/cwchar
vendored
7
third_party/libcxx/cwchar
vendored
|
@ -13,6 +13,13 @@
|
|||
#include "third_party/libcxx/__config"
|
||||
#include "third_party/libcxx/cwctype"
|
||||
#include "third_party/libcxx/wchar.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/time/struct/tm.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
#include "libc/time/struct/tm.h"
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
|
|
4
third_party/libcxx/thread
vendored
4
third_party/libcxx/thread
vendored
|
@ -34,9 +34,7 @@
|
|||
_LIBCPP_PUSH_MACROS
|
||||
#include "third_party/libcxx/__undef_macros"
|
||||
|
||||
#ifdef _LIBCPP_HAS_NO_THREADS
|
||||
#error <thread> is not supported on this single threaded system
|
||||
#else // !_LIBCPP_HAS_NO_THREADS
|
||||
#ifndef _LIBCPP_HAS_NO_THREADS
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue