software/include/base/stdint.h: more definitions

This commit is contained in:
Sebastien Bourdeauducq 2013-01-10 17:10:29 +01:00
parent 51f4f920a2
commit b0503aaf85
1 changed files with 17 additions and 1 deletions

View File

@ -3,5 +3,21 @@
typedef unsigned int uintptr_t; typedef unsigned int uintptr_t;
#endif /* __STDINT_H */ typedef unsigned long long uint64_t;
typedef unsigned int uint32_t;
typedef unsigned short uint16_t;
typedef unsigned char uint8_t;
typedef long long int64_t;
typedef int int32_t;
typedef short int16_t;
typedef char int8_t;
#define __int_c_join(a, b) a ## b
#define __int_c(v, suffix) __int_c_join(v, suffix)
#define __uint_c(v, suffix) __int_c_join(v##U, suffix)
#define INT64_C(v) __int_c(v, LL)
#define UINT64_C(v) __uint_c(v, LL)
#endif /* __STDINT_H */