EdkCompatibilityPkg: Fix GCC build failure
Edk2 enables Os option and ms_va_list in GCC tool chain. This change makes VA_LIST is not pointer, and cause GCC failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@ -296,7 +296,7 @@ GlueReportStatusCodeExtractDebugInfo (
|
|||||||
|
|
||||||
*ErrorLevel = DebugInfo->ErrorLevel;
|
*ErrorLevel = DebugInfo->ErrorLevel;
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#if defined(__APPLE__) || defined(__GNUC__)
|
||||||
// This is non portable C code you can't assume VA_LIST is pointer
|
// This is non portable C code you can't assume VA_LIST is pointer
|
||||||
return FALSE;
|
return FALSE;
|
||||||
#else
|
#else
|
||||||
|
@ -248,7 +248,7 @@ GlueReportStatusCodeExtractDebugInfo (
|
|||||||
// The first 12 * UINTN bytes of the string are really an
|
// The first 12 * UINTN bytes of the string are really an
|
||||||
// argument stack to support varargs on the Format string.
|
// argument stack to support varargs on the Format string.
|
||||||
//
|
//
|
||||||
#ifdef __APPLE__
|
#if defined(__APPLE__) || defined(__GNUC__)
|
||||||
// This is non portable C code you can't assume VA_LIST is pointer
|
// This is non portable C code you can't assume VA_LIST is pointer
|
||||||
return FALSE;
|
return FALSE;
|
||||||
#else
|
#else
|
||||||
|
@ -280,7 +280,7 @@ GlueReportStatusCodeExtractDebugInfo (
|
|||||||
// The first 12 * UINTN bytes of the string are really an
|
// The first 12 * UINTN bytes of the string are really an
|
||||||
// argument stack to support varargs on the Format string.
|
// argument stack to support varargs on the Format string.
|
||||||
//
|
//
|
||||||
#ifdef __APPLE__
|
#if defined(__APPLE__) || defined(__GNUC__)
|
||||||
// This is non portable C code you can't assume VA_LIST is pointer
|
// This is non portable C code you can't assume VA_LIST is pointer
|
||||||
return FALSE;
|
return FALSE;
|
||||||
#else
|
#else
|
||||||
|
@ -332,7 +332,7 @@ Returns:
|
|||||||
// The first 12 * UINTN bytes of the string are really an
|
// The first 12 * UINTN bytes of the string are really an
|
||||||
// arguement stack to support varargs on the Format string.
|
// arguement stack to support varargs on the Format string.
|
||||||
//
|
//
|
||||||
#if (defined (EFIARM) || defined (EFIAARCH64) || defined (__APPLE__))
|
#if (defined (EFIARM) || defined (EFIAARCH64) || defined (__APPLE__) || defined (__GNUC__))
|
||||||
// It is not legal C code to cast VA_LIST to a pointer. VA_LIST can
|
// It is not legal C code to cast VA_LIST to a pointer. VA_LIST can
|
||||||
// be a structure.
|
// be a structure.
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Reference in New Issue
Block a user