File tree Expand file tree Collapse file tree 2 files changed +0
-25
lines changed
Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change 3232extern " C" {
3333#endif
3434
35- // This declaration might not be universally correct.
36- // We verify its correctness for the current platform in the runtime code.
37- #if defined(__linux__)
38- # if defined(__ANDROID__) && !(defined(__aarch64__) || defined(__x86_64__))
39- typedef __swift_uint16_t __swift_mode_t ;
40- # else
41- typedef __swift_uint32_t __swift_mode_t ;
42- # endif
43- #elif defined(__APPLE__)
44- typedef __swift_uint16_t __swift_mode_t ;
45- #elif defined(_WIN32)
46- typedef __swift_int32_t __swift_mode_t ;
47- #elif defined(__wasi__)
48- typedef __swift_uint32_t __swift_mode_t ;
49- #elif defined(__OpenBSD__)
50- typedef __swift_uint32_t __swift_mode_t ;
51- #else // just guessing
52- typedef __swift_uint16_t __swift_mode_t ;
53- #endif
54-
5535
5636// Input/output <stdio.h>
5737SWIFT_RUNTIME_STDLIB_INTERNAL
Original file line number Diff line number Diff line change 3131
3232#include " ../SwiftShims/LibcShims.h"
3333
34- #if !defined(_WIN32) || defined(__CYGWIN__)
35- static_assert (std::is_same<mode_t , __swift_mode_t >::value,
36- " __swift_mode_t must be defined as equivalent to mode_t in LibcShims.h" );
37- #endif
38-
3934SWIFT_RUNTIME_STDLIB_INTERNAL
4035int _swift_stdlib_putchar_unlocked (int c) {
4136#if defined(_WIN32)
You can’t perform that action at this time.
0 commit comments