From 4f45b4c06585fab6e7123ef88ec7bda9288f5d46 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Fri, 8 Nov 2013 11:21:23 -0800 Subject: added define for common types --- common/arch.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/arch.h') diff --git a/common/arch.h b/common/arch.h index 6a29b0a9..fe5736db 100644 --- a/common/arch.h +++ b/common/arch.h @@ -62,6 +62,8 @@ #define EXPORT_CC #endif +#ifndef DEFINED_Ts +#define DEFINED_Ts typedef char ti8; typedef unsigned char tui8; typedef signed char tsi8; @@ -94,5 +96,6 @@ typedef int tsock; typedef unsigned long long tui64; typedef signed long long tsi64; #endif +#endif #endif -- cgit v1.2.1 From f221258610b9a7377c30c3c9e5b0f3a04ac255ae Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Wed, 20 Nov 2013 22:28:47 -0800 Subject: common: add unknown arch check --- common/arch.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/arch.h') diff --git a/common/arch.h b/common/arch.h index fe5736db..988153c2 100644 --- a/common/arch.h +++ b/common/arch.h @@ -32,6 +32,12 @@ defined(__AIX__) || defined(__PPC__) || defined(__mips__) || \ defined(__ia64__) || defined(__ppc__) || defined(__arm__) #define NEED_ALIGN +#elif defined(__x86__) || defined(__x86_64__) || \ + defined(__AMD64__) || defined(_M_IX86) || \ + defined(__i386__) +#define NO_NEED_ALIGN +#else +#warning unknown arch #endif #endif -- cgit v1.2.1 From ff12a1d7990cdd7460012b036797e1a872abfb45 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Fri, 10 Jan 2014 21:55:15 -0800 Subject: added tbool --- common/arch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/arch.h') diff --git a/common/arch.h b/common/arch.h index 988153c2..b4eb4719 100644 --- a/common/arch.h +++ b/common/arch.h @@ -79,6 +79,7 @@ typedef signed short tsi16; typedef int ti32; typedef unsigned int tui32; typedef signed int tsi32; +typedef int tbool; #if defined(_WIN64) /* Microsoft's VC++ compiler uses the more backwards-compatible LLP64 model. Most other 64 bit compilers(Solaris, AIX, HP, Linux, Mac OS X) use @@ -102,6 +103,6 @@ typedef int tsock; typedef unsigned long long tui64; typedef signed long long tsi64; #endif -#endif +#endif /* DEFINED_Ts */ #endif -- cgit v1.2.1