summaryrefslogtreecommitdiff
path: root/MdePkg/Include/Base.h
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-02-28 22:49:14 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-02-28 22:49:14 +0000
commit7bbc624a7dbc054a7a6a59482717b264cdbf4b4e (patch)
treec2aee723d27d5ad4e3c9ab8fe6f84c81ebe5cd76 /MdePkg/Include/Base.h
parent911da88693ff636186a2c19b26cf4f52f34f2209 (diff)
downloadedk2-platforms-7bbc624a7dbc054a7a6a59482717b264cdbf4b4e.tar.xz
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
Diffstat (limited to 'MdePkg/Include/Base.h')
-rw-r--r--MdePkg/Include/Base.h5
1 files changed, 5 insertions, 0 deletions
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)