Skip to content

Commit eadd20a

Browse files
authored
Merge pull request #32746 from zoecarver/gardening/shims/swift-mode-t
2 parents 5cd5a18 + 3e4ddb1 commit eadd20a

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

stdlib/public/SwiftShims/LibcShims.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,6 @@
3232
extern "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>
5737
SWIFT_RUNTIME_STDLIB_INTERNAL

stdlib/public/stubs/LibcShims.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
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-
3934
SWIFT_RUNTIME_STDLIB_INTERNAL
4035
int _swift_stdlib_putchar_unlocked(int c) {
4136
#if defined(_WIN32)

0 commit comments

Comments
 (0)