Skip to content

Commit

Permalink
[WINE/MSVCRT] Fix MSVCRT_size_t, MSVCRT_intptr_t and MSVCRT_uintptr_t…
Browse files Browse the repository at this point in the history
… 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."
  • Loading branch information
HBelusca committed Oct 24, 2024
1 parent 51b5598 commit ab7fbd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions modules/rostests/winetests/msvcrt/msvcrt.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ typedef unsigned __int64 MSVCRT_size_t;
typedef __int64 MSVCRT_intptr_t;
typedef unsigned __int64 MSVCRT_uintptr_t;
#else
typedef unsigned long MSVCRT_size_t;
typedef long MSVCRT_intptr_t;
typedef unsigned long MSVCRT_uintptr_t;
typedef unsigned int MSVCRT_size_t;
typedef int MSVCRT_intptr_t;
typedef unsigned int MSVCRT_uintptr_t;
#endif
typedef unsigned int MSVCRT__dev_t;
typedef int MSVCRT__off_t;
Expand Down
6 changes: 3 additions & 3 deletions sdk/lib/crt/wine/msvcrt.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ typedef unsigned __int64 MSVCRT_size_t;
typedef __int64 MSVCRT_intptr_t;
typedef unsigned __int64 MSVCRT_uintptr_t;
#else
typedef unsigned long MSVCRT_size_t;
typedef long MSVCRT_intptr_t;
typedef unsigned long MSVCRT_uintptr_t;
typedef unsigned int MSVCRT_size_t;
typedef int MSVCRT_intptr_t;
typedef unsigned int MSVCRT_uintptr_t;
#endif
#ifdef _CRTDLL
typedef short MSVCRT__dev_t;
Expand Down

0 comments on commit ab7fbd0

Please sign in to comment.