From fc8297211201e3df7464f72fb0ef05bd52b40158 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 13 Feb 2005 16:15:31 +0000 Subject: [PATCH] *** empty log message *** --- ase/types.h | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/ase/types.h b/ase/types.h index 7913d712..35bdc729 100644 --- a/ase/types.h +++ b/ase/types.h @@ -1,5 +1,5 @@ /* - * $Id: types.h,v 1.12 2005-02-06 03:27:54 bacon Exp $ + * $Id: types.h,v 1.13 2005-02-13 16:15:31 bacon Exp $ */ #ifndef _XP_TYPES_H_ @@ -10,6 +10,57 @@ #endif #include +#if defined(XP_HAVE_LONG_LONG) +typedef long long xp_long_t; +typedef unsigned long long xp_ulong_t; +#elif defined(XP_HAVE___INT64) +typedef __int64 xp_long_t; +typedef unsigned __int64 xp_ulong_t; +#else +typedef long xp_long_t; +typedef unsigned long xp_ulong_t; +#endif + +#if SIZEOF_VOID_P == SIZEOF_LONG_LONG +typedef long long xp_int_t; +typedef unsigned long long xp_uint_t; +#elif SIZEOF_VOID_P == SIZEOF_LONG +typedef long xp_int_t; +typedef unsigned long xp_uint_t; +#else +typedef int xp_int_t; +typedef unsigned int xp_uint_t; +#endif + +#if SIZEOF_CHAR == 8 +typedef char xp_int8_t; +typedef unsigned char xp_uint8_t; +#endif + +#if SIZEOF_SHORT == 16 +typedef short xp_int16_t; +typedef unsigned short xp_uint16_t; +#endif + +#if SIZEOF_INT == 32 +typedef int xp_int32_t; +typedef unsigned int xp_uint32_t; +#elif SIZEOF_LONG == 32 +typedef long xp_int32_t; +typedef unsigned long xp_uint32_t; +#endif + +#if SIZEOF_INT = 64 +typedef int xp_int64_t; +typedef unsigned int xp_uint64_t; +#elif SIZEOF_LONG == 64 +typedef long xp_int64_t; +typedef unsigned long xp_uint64_t; +#elif SIZEOF_LONG_LONG == 64 +typedef long long xp_int64_t; +typedef unsigned long long xp_uint64_t; +#endif + typedef xp_uint8_t xp_byte_t; typedef int xp_bool_t;