Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bb1266b2
Commit
bb1266b2
authored
Jul 05, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Define LONG_PTR as int on llvm-mingw to avoid printf format warnings.
parent
6366775e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
basetsd.h
include/basetsd.h
+7
-9
No files found.
include/basetsd.h
View file @
bb1266b2
...
...
@@ -122,15 +122,15 @@ typedef unsigned __int64 ULONG_PTR, *PULONG_PTR;
#define __int3264 __int32
#ifdef WINE_NO_LONG_TYPES
typedef
long
INT_PTR
,
*
PINT_PTR
;
typedef
unsigned
long
UINT_PTR
,
*
PUINT_PTR
;
#else
typedef
int
INT_PTR
,
*
PINT_PTR
;
typedef
unsigned
int
UINT_PTR
,
*
PUINT_PTR
;
#endif
#if defined(__clang__) && defined(__MINGW32__)
/* llvm-mingw warns about long type in %I formats */
typedef
int
LONG_PTR
,
*
PLONG_PTR
;
typedef
unsigned
int
ULONG_PTR
,
*
PULONG_PTR
;
#else
typedef
long
LONG_PTR
,
*
PLONG_PTR
;
typedef
unsigned
long
ULONG_PTR
,
*
PULONG_PTR
;
#endif
#endif
...
...
@@ -142,8 +142,6 @@ typedef unsigned long ULONG_PTR, *PULONG_PTR;
#define MININT_PTR 0x8000000000000000
#define MAXUINT_PTR 0xffffffffffffffff
typedef
__int64
SHANDLE_PTR
;
typedef
unsigned
__int64
HANDLE_PTR
;
typedef
int
HALF_PTR
,
*
PHALF_PTR
;
typedef
unsigned
int
UHALF_PTR
,
*
PUHALF_PTR
;
...
...
@@ -259,8 +257,6 @@ static inline void *ULongToPtr(ULONG32 ul)
#define MININT_PTR 0x80000000
#define MAXUINT_PTR 0xffffffff
typedef
long
SHANDLE_PTR
;
typedef
unsigned
long
HANDLE_PTR
;
typedef
signed
short
HALF_PTR
,
*
PHALF_PTR
;
typedef
unsigned
short
UHALF_PTR
,
*
PUHALF_PTR
;
...
...
@@ -290,6 +286,8 @@ typedef unsigned short UHALF_PTR, *PUHALF_PTR;
#define UintToPtr(ui) UIntToPtr(ui)
#define UlongToPtr(ul) ULongToPtr(ul)
typedef
LONG_PTR
SHANDLE_PTR
;
typedef
ULONG_PTR
HANDLE_PTR
;
typedef
LONG_PTR
SSIZE_T
,
*
PSSIZE_T
;
typedef
ULONG_PTR
SIZE_T
,
*
PSIZE_T
;
typedef
ULONG_PTR
DWORD_PTR
,
*
PDWORD_PTR
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment