Skip to content

Commit ab7fbd0

Browse files
committed
[WINE/MSVCRT] Fix MSVCRT_size_t, MSVCRT_intptr_t and MSVCRT_uintptr_t typedefs (reactos#6464)
Make these definitions compatible with the other ambient size_t and (u)intptr_t types used in the rest of our code base. This partly reverts the corresponding typedef changes from wine commit wine-mirror/wine@d8ab5a1 "msvcrt: Use intptr_t or size_t instead of long where appropriate."
1 parent 51b5598 commit ab7fbd0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

modules/rostests/winetests/msvcrt/msvcrt.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ typedef unsigned __int64 MSVCRT_size_t;
6464
typedef __int64 MSVCRT_intptr_t;
6565
typedef unsigned __int64 MSVCRT_uintptr_t;
6666
#else
67-
typedef unsigned long MSVCRT_size_t;
68-
typedef long MSVCRT_intptr_t;
69-
typedef unsigned long MSVCRT_uintptr_t;
67+
typedef unsigned int MSVCRT_size_t;
68+
typedef int MSVCRT_intptr_t;
69+
typedef unsigned int MSVCRT_uintptr_t;
7070
#endif
7171
typedef unsigned int MSVCRT__dev_t;
7272
typedef int MSVCRT__off_t;

sdk/lib/crt/wine/msvcrt.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ typedef unsigned __int64 MSVCRT_size_t;
8080
typedef __int64 MSVCRT_intptr_t;
8181
typedef unsigned __int64 MSVCRT_uintptr_t;
8282
#else
83-
typedef unsigned long MSVCRT_size_t;
84-
typedef long MSVCRT_intptr_t;
85-
typedef unsigned long MSVCRT_uintptr_t;
83+
typedef unsigned int MSVCRT_size_t;
84+
typedef int MSVCRT_intptr_t;
85+
typedef unsigned int MSVCRT_uintptr_t;
8686
#endif
8787
#ifdef _CRTDLL
8888
typedef short MSVCRT__dev_t;

0 commit comments

Comments
 (0)