xtensa: define UINT32_C macro for XCC
Newer XCC versions wrap unsigned int with UINT32_C(x) in their own macros. However, the #include chain usually does not contain UINT32_C(x). To make matters worse, including stdint.h (where UINT32_C is defined) in toolchain/xcc.h would cause the linker script to contain a bunch of typedef which are invalid for linker scripts. So define UINT32_C(x) manually. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
01cc804d76
commit
d390bb2d66
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
#ifndef UINT32_C
|
||||||
|
#define UINT32_C(x) x ## U
|
||||||
|
#endif
|
||||||
|
|
||||||
/* XCC doesn't support __COUNTER__ but this should be good enough */
|
/* XCC doesn't support __COUNTER__ but this should be good enough */
|
||||||
#define __COUNTER__ __LINE__
|
#define __COUNTER__ __LINE__
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue