summaryrefslogtreecommitdiff
path: root/StdLib/Include
diff options
context:
space:
mode:
authordarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2012-03-28 22:17:44 +0000
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2012-03-28 22:17:44 +0000
commit521527e0b63910d6d4d0d011e86738f21fbd32bf (patch)
tree5e2c00b8c2cdc2973ca2f6b1228880638349892b /StdLib/Include
parent4adc12bfc30e59c4592c0351e0d9d1a07ed0e357 (diff)
downloadedk2-platforms-521527e0b63910d6d4d0d011e86738f21fbd32bf.tar.xz
StdLib/Include/stdarg.h: Added the __va_copy macro for Python compatibility.
AppPkg/Applications/Python: Deleted obsolete and incomplete PyMod-2.7.1. Changes to enable compilation using GCC 4.4 on both Windows and Linux hosts. Signed-off-by: daryl.mcdaniel@intel.com Reviewed-by: jaben.carsey@intel.com git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13147 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib/Include')
-rw-r--r--StdLib/Include/stdarg.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/StdLib/Include/stdarg.h b/StdLib/Include/stdarg.h
index b9de364232..9a30e28fbf 100644
--- a/StdLib/Include/stdarg.h
+++ b/StdLib/Include/stdarg.h
@@ -20,7 +20,7 @@
function accepting a varying number of arguments, if access to the varying
arguments is desired.
- Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
@@ -134,4 +134,13 @@ typedef __builtin_va_list va_list;
#endif
/*@}*/
+/** Provide a generic version of the compiler-dependent __va_copy macro.
+ Some software, such as Python 2.7.2, relies upon the existence of __va_copy.
+ If this macro is not defined, it just assigns one va_list item to another.
+ This breaks for compiler environments that define va_list as an array or structure.
+**/
+#ifndef __va_copy
+ #define __va_copy va_copy
+#endif
+
#endif /* _STDARG_H */