|
From: oharboe at B. <oh...@ma...> - 2009-06-15 16:22:14
|
Author: oharboe Date: 2009-06-15 16:22:13 +0200 (Mon, 15 Jun 2009) New Revision: 2241 Modified: trunk/src/helper/types.h Log: fix eCos build problems w/latest parse_ulong() stuff Modified: trunk/src/helper/types.h =================================================================== --- trunk/src/helper/types.h 2009-06-13 08:38:57 UTC (rev 2240) +++ trunk/src/helper/types.h 2009-06-15 14:22:13 UTC (rev 2241) @@ -137,22 +137,27 @@ } #ifdef __ECOS + /* eCos plain lacks this definition... */ typedef CYG_ADDRWORD intptr_t; typedef int64_t intmax_t; typedef uint64_t uintmax_t; #define INT8_MAX 0x7f #define INT8_MIN (-INT8_MAX - 1) -#define UINT8_MAX (__CONCAT(INT8_MAX, U) * 2U + 1U) +# define UINT8_MAX (255) #define INT16_MAX 0x7fff #define INT16_MIN (-INT16_MAX - 1) -#define UINT16_MAX (__CONCAT(INT16_MAX, U) * 2U + 1U) +# define UINT16_MAX (65535) #define INT32_MAX 0x7fffffffL #define INT32_MIN (-INT32_MAX - 1L) -#define UINT32_MAX (__CONCAT(INT32_MAX, U) * 2UL + 1UL) +# define UINT32_MAX (4294967295U) #define INT64_MAX 0x7fffffffffffffffLL #define INT64_MIN (-INT64_MAX - 1LL) #define UINT64_MAX (__CONCAT(INT64_MAX, U) * 2ULL + 1ULL) + + + + #endif #endif /* TYPES_H */ |