File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ namespace swift { extern "C" {
35
35
// the current platform in the runtime code.
36
36
#if defined(__linux__) && defined (__arm__) && !defined(__android__)
37
37
typedef int __swift_ssize_t ;
38
- #elif defined(_MSC_VER )
38
+ #elif defined(_WIN32 )
39
39
#if defined(_M_ARM) || defined(_M_IX86)
40
40
typedef int __swift_ssize_t ;
41
41
#elif defined(_M_X64)
Original file line number Diff line number Diff line change 18
18
#ifndef SWIFT_STDLIB_SHIMS_VISIBILITY_H
19
19
#define SWIFT_STDLIB_SHIMS_VISIBILITY_H
20
20
21
- #if defined(__has_feature) && __has_feature(nullability)
21
+ #if !defined(__has_feature)
22
+ #define __has_feature (x ) false
23
+ #endif
24
+
25
+ #if __has_feature(nullability)
22
26
// Provide macros to temporarily suppress warning about the use of
23
27
// _Nullable and _Nonnull.
24
28
# define SWIFT_BEGIN_NULLABILITY_ANNOTATIONS \
You can’t perform that action at this time.
0 commit comments