File tree Expand file tree Collapse file tree 4 files changed +27
-3
lines changed Expand file tree Collapse file tree 4 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 1616#include < __config>
1717#include < __mutex/mutex.h>
1818#include < __mutex/unique_lock.h>
19- #include < __system_error/system_error .h>
19+ #include < __system_error/throw_system_error .h>
2020#include < __thread/support.h>
2121#include < __type_traits/enable_if.h>
2222#include < __type_traits/is_floating_point.h>
Original file line number Diff line number Diff line change 1414#include < __config>
1515#include < __memory/addressof.h>
1616#include < __mutex/tag_types.h>
17- #include < __system_error/system_error .h>
17+ #include < __system_error/throw_system_error .h>
1818#include < __utility/swap.h>
1919#include < cerrno>
2020
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ class _LIBCPP_EXPORTED_FROM_ABI system_error : public runtime_error {
3939 _LIBCPP_HIDE_FROM_ABI const error_code& code () const _NOEXCEPT { return __ec_; }
4040};
4141
42- [[__noreturn__]] _LIBCPP_EXPORTED_FROM_ABI void __throw_system_error (int __ev, const char * __what_arg);
4342[[__noreturn__]] _LIBCPP_HIDE_FROM_ABI inline void __throw_system_error (error_code __ec, const char * __what_arg) {
4443#if _LIBCPP_HAS_EXCEPTIONS
4544 throw system_error (__ec, __what_arg);
Original file line number Diff line number Diff line change 1+ // -*- C++ -*-
2+ // ===----------------------------------------------------------------------===//
3+ //
4+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5+ // See https://llvm.org/LICENSE.txt for license information.
6+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7+ //
8+ // ===----------------------------------------------------------------------===//
9+
10+ #ifndef _LIBCPP___SYSTEM_ERROR_THROW_SYSTEM_ERROR_H
11+ #define _LIBCPP___SYSTEM_ERROR_THROW_SYSTEM_ERROR_H
12+
13+ #include < __config>
14+
15+ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
16+ # pragma GCC system_header
17+ #endif
18+
19+ _LIBCPP_BEGIN_NAMESPACE_STD
20+
21+ [[__noreturn__]] _LIBCPP_EXPORTED_FROM_ABI void __throw_system_error (int __ev, const char * __what_arg);
22+
23+ _LIBCPP_END_NAMESPACE_STD
24+
25+ #endif // _LIBCPP___SYSTEM_ERROR_THROW_SYSTEM_ERROR_H
You can’t perform that action at this time.
0 commit comments