arm64 : fix intptr_t size

This commit is contained in:
hymei
2022-06-05 01:12:32 +03:00
committed by nillerusr
parent 2690e6c85a
commit 4e4039d756
143 changed files with 1015 additions and 674 deletions
+10 -2
View File
@@ -39,6 +39,14 @@ typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;
#ifdef PLATFORM_64BITS
typedef long long intp;
typedef unsigned long long uintp;
#else
typedef int intp;
typedef unsigned int uintp;
#endif
#ifndef _WCHAR_T_DEFINED
// DAL - wchar_t is a built in define in gcc 3.2 with a size of 4 bytes
#if !defined( __x86_64__ ) && !defined( __WCHAR_TYPE__ )
@@ -54,7 +62,7 @@ namespace vgui
{
// handle to an internal vgui panel
// this is the only handle to a panel that is valid across dll boundaries
typedef unsigned int VPANEL;
typedef uintp VPANEL;
// handles to vgui objects
// NULL values signify an invalid value
@@ -63,7 +71,7 @@ typedef unsigned long HScheme;
typedef unsigned long HTexture;
typedef unsigned long HCursor;
typedef unsigned long HPanel;
const HPanel INVALID_PANEL = 0xffffffff;
const HPanel INVALID_PANEL = (HPanel)-1;
typedef unsigned long HFont;
const HFont INVALID_FONT = 0; // the value of an invalid font handle
}