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:
Daniel Leung 2019-12-16 09:35:03 -08:00 committed by Johan Hedberg
commit d390bb2d66

View file

@ -18,6 +18,10 @@
#include <stdbool.h>
#ifndef UINT32_C
#define UINT32_C(x) x ## U
#endif
/* XCC doesn't support __COUNTER__ but this should be good enough */
#define __COUNTER__ __LINE__