mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
include: Simplify typedefs for Windows data types.
This fixes compiler warnings when compiling 32-bit version of libvkd3d.
This commit is contained in:
parent
0444bb72b5
commit
abb169678c
@ -54,28 +54,22 @@ typedef unsigned int ULONG;
|
||||
typedef float FLOAT;
|
||||
typedef LONG BOOL;
|
||||
|
||||
# ifndef __WIDL__
|
||||
# include <stdint.h>
|
||||
|
||||
typedef uint8_t UINT8;
|
||||
typedef uint16_t UINT16;
|
||||
typedef uint32_t UINT32;
|
||||
typedef int64_t INT64;
|
||||
typedef uint64_t UINT64;
|
||||
|
||||
typedef uintptr_t ULONG_PTR;
|
||||
typedef intptr_t LONG_PTR;
|
||||
# else
|
||||
/* Assuming LP64 model */
|
||||
typedef char INT8;
|
||||
typedef unsigned char UINT8;
|
||||
typedef short INT16;
|
||||
typedef unsigned short UINT16;
|
||||
typedef int INT32;
|
||||
typedef unsigned int UINT32;
|
||||
|
||||
typedef unsigned long UINT64;
|
||||
# if defined(__x86_64__) || defined(__WIDL__)
|
||||
typedef long INT64;
|
||||
|
||||
typedef unsigned long UINT64;
|
||||
# else
|
||||
typedef long long INT64;
|
||||
typedef unsigned long long UINT64;
|
||||
# endif
|
||||
typedef long LONG_PTR;
|
||||
typedef unsigned long ULONG_PTR;
|
||||
# endif
|
||||
|
||||
typedef ULONG_PTR SIZE_T;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user