Skip to content

Commit d325252

Browse files
committed
Runtime: restrict behaviour to cygwin
__int128 is not available as an extension on MSVC nor clang for Windows. Restrict the behaviour to cygwin only.
1 parent 6e28eab commit d325252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Runtime/HeapObject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ struct TwoWordPair {
107107
// Use an enum class with implicit conversions so we don't dirty C callers
108108
// too much.
109109
#if __arm__ || __i386__ || defined(__CYGWIN__) || defined(_MSC_VER)
110-
#if defined(__CYGWIN__) || defined(_MSC_VER)
110+
#if defined(__CYGWIN__)
111111
enum class Return : unsigned __int128 {};
112112
#else
113113
enum class Return : unsigned long long {};
114114
#endif
115-
115+
116116
operator Return() const {
117117
union {
118118
TwoWordPair value;

0 commit comments

Comments
 (0)