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 32
32
extern " C" {
33
33
#endif
34
34
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
-
55
35
56
36
// Input/output <stdio.h>
57
37
SWIFT_RUNTIME_STDLIB_INTERNAL
Original file line number Diff line number Diff line change 31
31
32
32
#include " ../SwiftShims/LibcShims.h"
33
33
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
-
39
34
SWIFT_RUNTIME_STDLIB_INTERNAL
40
35
int _swift_stdlib_putchar_unlocked (int c) {
41
36
#if defined(_WIN32)
You can’t perform that action at this time.
0 commit comments