From 7bbc624a7dbc054a7a6a59482717b264cdbf4b4e Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Tue, 28 Feb 2012 22:49:14 +0000 Subject: [PATCH] MdePkg/Include/Base.h: Defined __va_copy macro when not defined by the ARM toolchain The newer versions of ARM RVCT do not define __va_copy. Signed-off-by: oliviermartin Reviewed-by: mdkinney git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13067 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Base.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 66fc5d271b..fa02f0f530 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -455,6 +455,11 @@ struct _LIST_ENTRY { #define VA_END(Marker) ((void)0) +// For some ARM RVCT compilers, __va_copy is not defined +#ifndef __va_copy + #define __va_copy(dest, src) ((void)((dest) = (src))) +#endif + #define VA_COPY(Dest, Start) __va_copy (Dest, Start) #elif defined(__GNUC__) && !defined(NO_BUILTIN_VA_FUNCS)