diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-15 14:22:13 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-15 14:22:13 +0000 |
commit | 588a17da43e95d385b4db27327fffb050bcdc0fc (patch) | |
tree | 698e262942bff5e16f025e13df5bf2db21950b32 /src | |
parent | 4f4592539d61764397257438d6914137498cbf70 (diff) | |
download | openocd+libswd-588a17da43e95d385b4db27327fffb050bcdc0fc.tar.gz openocd+libswd-588a17da43e95d385b4db27327fffb050bcdc0fc.tar.bz2 openocd+libswd-588a17da43e95d385b4db27327fffb050bcdc0fc.tar.xz openocd+libswd-588a17da43e95d385b4db27327fffb050bcdc0fc.zip |
fix eCos build problems w/latest parse_ulong() stuff
git-svn-id: svn://svn.berlios.de/openocd/trunk@2241 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/helper/types.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/helper/types.h b/src/helper/types.h index f993ba21..49933184 100644 --- a/src/helper/types.h +++ b/src/helper/types.h @@ -137,22 +137,27 @@ static inline void h_u16_to_be(u8* buf, int val) } #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 */ |