Commit bb1266b2 authored by Alexandre Julliard's avatar Alexandre Julliard

include: Define LONG_PTR as int on llvm-mingw to avoid printf format warnings.

parent 6366775e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment