Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion stdlib/public/Windows/WinSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,12 @@ extension GUID {
// comes from the _GUIDDef clang module rather than the WinSDK clang module.

extension GUID: @retroactive Equatable {
// When C++ interop is enabled, Swift imports a == operator from guiddef.h
// that conflicts with the definition of == here, so we've renamed it to
// __equals to avoid the conflict.
@_transparent
public static func ==(lhs: Self, rhs: Self) -> Bool {
@_implements(Equatable, ==(_:_:))
public static func __equals(lhs: Self, rhs: Self) -> Bool {
lhs.uint128Value == rhs.uint128Value
}
}
Expand Down