File tree Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 9
9
#ifndef LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_PLATFORM_ERRORS_H
10
10
#define LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_PLATFORM_ERRORS_H
11
11
12
- #if defined(__linux__) || defined(__Fuchsia__) || defined(__EMSCRIPTEN__)
12
+ #if defined(__linux__) || defined(__Fuchsia__)
13
13
#include " tables/linux_platform_errors.h"
14
+ #elif defined(__EMSCRIPTEN__)
15
+ #include " tables/emscripten_platform_errors.h"
14
16
#else
15
17
#include " tables/minimal_platform_errors.h"
16
18
#endif
Original file line number Diff line number Diff line change
1
+ // ===-- Map of error numbers to strings for the Emscripten platform --*- C++ -*-===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ // ===----------------------------------------------------------------------===//
8
+
9
+ #ifndef LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_TABLES_EMSCRPITEN_PLATFORM_ERRORS_H
10
+ #define LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_TABLES_EMSCRPITEN_PLATFORM_ERRORS_H
11
+
12
+ #include " posix_errors.h"
13
+ #include " src/__support/macros/config.h"
14
+ #include " stdc_errors.h"
15
+
16
+ namespace LIBC_NAMESPACE_DECL {
17
+
18
+ LIBC_INLINE_VAR constexpr auto PLATFORM_ERRORS =
19
+ STDC_ERRORS + POSIX_ERRORS;
20
+
21
+ LIBC_INLINE_VAR constexpr auto PLATFORM_ERRNO_NAMES =
22
+ STDC_ERRNO_NAMES + POSIX_ERRNO_NAMES;
23
+
24
+ } // namespace LIBC_NAMESPACE_DECL
25
+
26
+ #endif // LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_TABLES_EMSCRPITEN_PLATFORM_ERRORS_H
Original file line number Diff line number Diff line change
1
+ // ===-- Implementation of sigsetjmp ---------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ // ===----------------------------------------------------------------------===//
8
+
1
9
#include " src/setjmp/sigsetjmp.h"
2
10
#include " hdr/offsetof_macros.h"
3
11
#include " src/__support/common.h"
You can’t perform that action at this time.
0 commit comments