From 8172484c44c0734c5ab7a821ea4b7e14e8b253e1 Mon Sep 17 00:00:00 2001 From: SaiSurya Ch Date: Wed, 14 Aug 2024 15:42:02 +0530 Subject: [PATCH] src: xtensa: core: Declare UINT32_C Add UINT32_C definition required for core file of platform ACP_7_0. Signed-off-by: SaiSurya Ch --- src/arch/xtensa/include/xtensa/config/core.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/arch/xtensa/include/xtensa/config/core.h b/src/arch/xtensa/include/xtensa/config/core.h index 4cf7606df707..cd2fdd98ecff 100644 --- a/src/arch/xtensa/include/xtensa/config/core.h +++ b/src/arch/xtensa/include/xtensa/config/core.h @@ -42,17 +42,22 @@ * building SOF with Zephyr and XtensaTools. */ -#if defined(__ZEPHYR__) +#if defined(_ASMLANGUAGE) + +#ifndef UINT32_C +#define UINT32_C(x) x +#endif + +#else #ifndef __UINT32_C #define __UINT32_C(x) x ## U #endif - #ifndef UINT32_C #define UINT32_C(x) __UINT32_C(x) #endif -#endif +#endif // _ASMLANGUAGE /* CONFIGURATION INDEPENDENT DEFINITIONS: */ #ifdef __XTENSA__