From ffc6107d40f73196ea3db160e51f57805adbcebc Mon Sep 17 00:00:00 2001 From: darylm503 Date: Fri, 18 Jan 2013 20:36:27 +0000 Subject: AppPkg/Applications/Python: Add support for the pyexpat module. Add required flags to [BuildOptions] in PythonCore.inf. Add initialization routine to Efi/config.c. Alter #include targets if building for UEFI in expat_external.h and xmlparse.c. Add expat modifications to PyMod-2.7.2/Modules/expat. Contributed-under: TianoCore Contribution Agreement 1.0 Submitted-by: Duane Voth Signed-off-by: daryl.mcdaniel@intel.com Reviewed-by: duanev@gmail.com Reviewed-by: daryl.mcdaniel@intel.com git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14071 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Applications/Python/Python-2.7.2/Modules/expat/expat_external.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'AppPkg/Applications/Python/Python-2.7.2/Modules/expat/expat_external.h') diff --git a/AppPkg/Applications/Python/Python-2.7.2/Modules/expat/expat_external.h b/AppPkg/Applications/Python/Python-2.7.2/Modules/expat/expat_external.h index 5246622bf5..d71d051a69 100644 --- a/AppPkg/Applications/Python/Python-2.7.2/Modules/expat/expat_external.h +++ b/AppPkg/Applications/Python/Python-2.7.2/Modules/expat/expat_external.h @@ -9,7 +9,9 @@ /* Namespace external symbols to allow multiple libexpat version to co-exist. */ -#include "pyexpatns.h" +#if !defined(UEFI_C_SOURCE) + #include "pyexpatns.h" +#endif #if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__) #define XML_USE_MSC_EXTENSIONS 1 @@ -101,7 +103,7 @@ typedef char XML_LChar; #ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */ #if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 -typedef __int64 XML_Index; +typedef __int64 XML_Index; typedef unsigned __int64 XML_Size; #else typedef long long XML_Index; -- cgit v1.2.3