Skip to content

Commit febccda

Browse files
authored
Update WinSDK+Extensions.swift
1 parent de95b9a commit febccda

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Sources/SwiftWin32/Support/WinSDK+Extensions.swift

+9-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44
import WinSDK
55

66
#if arch(i386) || arch(arm)
7-
internal typealias GetWindowLongPtrW = GetWindowLongW
8-
internal typealias SetWindowLongPtrW = SetWindowLongW
7+
@_transparent
8+
internal func GetWindowLongPtrW(_ hWnd: HWND, _ nIndex: CInt) -> LONG {
9+
return GetWindowLongW(hWnd, nIndex)
10+
}
11+
12+
@_transparent
13+
internal func SetWindowLongPtrW(_ hWnd: HWND, _ nIndex: CInt, _ dwNewLong: LONG) -> LONG {
14+
return SetWindowLongW(hWnd, nIndex, dwNewLong)
15+
}
916
#endif
1017

1118
internal let IDC_ARROW: UnsafePointer<WCHAR> =

0 commit comments

Comments
 (0)