Skip to content

Commit 90946f0

Browse files
committed
[Threading] Add _WIN64 conditional version of ULONG_PTR.
`ULONG_PTR` is defined slightly differently on `_WIN64` builds. rdar://113898653
1 parent bb8317a commit 90946f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/swift/Threading/Impl/Win32/Win32Defs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ typedef int BOOL;
3838
typedef unsigned long DWORD;
3939
typedef long LONG;
4040
typedef unsigned long ULONG;
41+
#if defined(_WIN64)
42+
typedef unsigned __int64 ULONG_PTR;
43+
#else
4144
typedef unsigned long ULONG_PTR;
45+
#endif
4246
typedef PVOID HANDLE;
4347

4448
typedef VOID(NTAPI *PFLS_CALLBACK_FUNCTION)(PVOID lpFlsData);

0 commit comments

Comments
 (0)