Mercurial > hg > th-libs
changeset 149:6a0e9980b76b
Mostly cosmetic changes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 07 Jan 2015 17:04:31 +0200 |
parents | bca55caf5c37 |
children | 9bc7f60f3013 |
files | th_types.h |
diffstat | 1 files changed, 5 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/th_types.h Wed Jan 07 16:56:29 2015 +0200 +++ b/th_types.h Wed Jan 07 17:04:31 2015 +0200 @@ -28,7 +28,7 @@ // Shorthand types typedef unsigned long int ulint_t; typedef signed long int lint_t; -#ifndef HAVE_UINT_T +#ifndef HAVE_UINT_T // BOOST defines uint_t at least typedef unsigned int uint_t; #endif @@ -38,43 +38,35 @@ #ifdef TH_TYPE_I8 typedef unsigned TH_TYPE_I8 uint8_t; // 8 bits, unsigned typedef signed TH_TYPE_I8 int8_t; // 8 bits, signed -#else -#ifndef HAVE_INT_TYPES +#elif !defined(HAVE_INT_TYPES) typedef unsigned char uint8_t; typedef signed char int8_t; #endif -#endif #ifdef TH_TYPE_I16 typedef unsigned TH_TYPE_I16 uint16_t; // 16 bits, unsigned == 2 BYTEs typedef signed TH_TYPE_I16 int16_t; // 16 bits, signed -#else -#ifndef HAVE_INT_TYPES +#elif !defined(HAVE_INT_TYPES) typedef unsigned short int uint16_t; typedef signed short int int16_t; #endif -#endif #ifdef TH_TYPE_I32 typedef unsigned TH_TYPE_I32 uint32_t; // 32 bits, unsigned == 4 BYTES == 2 WORDs typedef signed TH_TYPE_I32 int32_t; // 32 bits, signed -#else -#ifndef HAVE_INT_TYPES +#elif !defined(HAVE_INT_TYPES) typedef unsigned int uint32_t; typedef signed int int32_t; #endif -#endif #ifdef TH_TYPE_I64 typedef unsigned TH_TYPE_I64 uint64_t; // 64 bits, unsigned == 8 BYTES == 2 DWORDs typedef signed TH_TYPE_I64 int64_t; // 64 bits, signed -#else -#ifndef HAVE_INT_TYPES +#elif !defined(HAVE_INT_TYPES) typedef unsigned long long uint64_t; typedef signed long long int64_t; #endif -#endif /* This is the character type used in all string-related routines of