From b21c980c03ea476e324c714a9ad2d5eff5cb981d Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Mon, 21 Apr 2008 21:32:26 +0000 Subject: * Added intptr/uintptr to cbasetypes.h (integers with the same size as a pointer). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12632 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/cbasetypes.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/common') diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h index 557e263fb..ae0bb8c78 100644 --- a/src/common/cbasetypes.h +++ b/src/common/cbasetypes.h @@ -189,6 +189,18 @@ typedef unsigned long long uint64; #endif +////////////////////////////////////////////////////////////////////////// +// pointer sized integers +////////////////////////////////////////////////////////////////////////// +#ifdef __64BIT__ +typedef uint64 uintptr; +typedef int64 intptr; +#else +typedef uint32 uintptr; +typedef int32 intptr; +#endif + + ////////////////////////////////////////////////////////////////////////// // some redefine of function redefines for some Compilers ////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3-70-g09d2