summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2010-10-13 07:07:54 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2010-10-13 07:07:54 +0000
commit2b0fcbf5379b240ebeeff3697d4bbe57d2bf8aab (patch)
tree12f4346485e6cf250b49f4455780ac1d78874033 /EdkCompatibilityPkg
parent152d9a6b0787e447ede419b48b59b8954a3e2bbd (diff)
downloadedk2-platforms-2b0fcbf5379b240ebeeff3697d4bbe57d2bf8aab.tar.xz
EdkCompatibilityPkg: Re-add VA_COPY macro
This macro was lost in r10585. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10930 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg')
-rw-r--r--EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h b/EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h
index 69b4567ae3..5697371b8a 100644
--- a/EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h
+++ b/EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h
@@ -90,6 +90,8 @@ Abstract:
#define VA_END(Marker) ((void)0)
+#define VA_COPY(Dest, Start) __va_copy (Dest, Start)
+
#elif defined(__GNUC__) && !defined(NO_BUILTIN_VA_FUNCS)
//
// Use GCC built-in macros for variable argument lists.
@@ -107,6 +109,8 @@ typedef __builtin_va_list VA_LIST;
#define VA_END(Marker) __builtin_va_end (Marker)
+#define VA_COPY(Dest, Start) __builtin_va_copy (Dest, Start)
+
#else
#ifndef VA_START
@@ -165,6 +169,8 @@ typedef CHAR8 *VA_LIST;
**/
#define VA_END(Marker) (Marker = (VA_LIST) 0)
+#define VA_COPY(dest, src) ((void)((dest) = (src)))
+
#endif
#endif