diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-13 07:07:54 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-13 07:07:54 +0000 |
commit | 2b0fcbf5379b240ebeeff3697d4bbe57d2bf8aab (patch) | |
tree | 12f4346485e6cf250b49f4455780ac1d78874033 /EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h | |
parent | 152d9a6b0787e447ede419b48b59b8954a3e2bbd (diff) | |
download | edk2-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/Foundation/Include/EfiStdArg.h')
-rw-r--r-- | EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h | 6 |
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
|