This is an automated email from the ASF dual-hosted git repository. archer pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 0cf0bece2e2e353b611277c0212df9abf186af77 Author: guoshichao <[email protected]> AuthorDate: Thu Jun 20 14:12:50 2024 +0800 arch/strarg: provide the stdarg implementation for greenhills compiler the greenhills compiler provide its own implementation of va_start, va_end, va_arg, va_copy. so if we are build vela with greenhills compiler, we should using the stdarg implementation provided by greenhills, not our own Signed-off-by: guoshichao <[email protected]> --- arch/arm/include/stdarg.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/include/stdarg.h b/arch/arm/include/stdarg.h index 26b9088f8e..4d7db30d68 100644 --- a/arch/arm/include/stdarg.h +++ b/arch/arm/include/stdarg.h @@ -25,6 +25,10 @@ * Included Files ****************************************************************************/ +#ifdef __ghs__ +# include <ansi/stdarg.h> +#else + /**************************************************************************** * Pre-processor Prototypes ****************************************************************************/ @@ -42,4 +46,6 @@ typedef __builtin_va_list va_list; +#endif + #endif /* __ARCH_ARM_INCLUDE_STDARG_H */
