From: ShadowFlare Date: Tue, 7 Sep 2010 10:05:49 +0000 (-0600) Subject: Use types from stdint.h. X-Git-Url: https://sfsrealm.hopto.org/projects/?a=commitdiff_plain;h=895681eb4872565ad50faec7c2c7a0d7983bfe53;p=SComp.git Use types from stdint.h. --- diff --git a/wintypes.h b/wintypes.h index dd411d3..cae65d2 100644 --- a/wintypes.h +++ b/wintypes.h @@ -5,24 +5,27 @@ #ifndef WIN_TYPES_INCLUDED #define WIN_TYPES_INCLUDED +#include + #define WINAPI #define CDECL #define __fastcall #define CONST const +#define VOID void -typedef void VOID; +//typedef void VOID; typedef void *LPVOID; typedef CONST void *LPCVOID; typedef const char *LPCSTR; -typedef unsigned char BYTE; +typedef uint8_t BYTE; typedef BYTE *LPBYTE; -typedef unsigned short WORD; +typedef uint16_t WORD; typedef WORD *LPWORD; -typedef short SHORT; -typedef unsigned long DWORD; +typedef int16_t SHORT; +typedef uint32_t DWORD; typedef DWORD *LPDWORD; -typedef long LONG; +typedef int32_t LONG; typedef LONG *LPLONG; typedef int BOOL;