mirror of https://github.com/acidanthera/audk.git
1) add && MDE_CPU_EBC guard for MSC specific pragma in Decode.c as EBC C compiler does not recongnize the pragma.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2408 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
c3ebca2cf3
commit
5d09d1b775
|
@ -22,7 +22,12 @@ Revision history:
|
|||
#include "undi32.h"
|
||||
|
||||
|
||||
#ifdef _MSC_EXTENSIONS
|
||||
//
|
||||
// #pragma data_seg("rtdata") is only recognized by MSFT C compiler.
|
||||
// But EBC compiler "Intel(R) C Compiler for EFI Byte Code, Version 1.2 Build 20040123"
|
||||
// does not recognize this pragma.
|
||||
//
|
||||
#if defined(_MSC_EXTENSIONS) && !defined(MDE_CPU_EBC)
|
||||
#pragma data_seg("rtdata")
|
||||
#endif
|
||||
|
||||
|
@ -1650,6 +1655,11 @@ Returns:
|
|||
PxePtr->Fudge = (UINT8) (PxePtr->Fudge - ChkSum ((VOID *) PxePtr, PxePtr->Len));
|
||||
}
|
||||
|
||||
#ifdef _MSC_EXTENSIONS
|
||||
//
|
||||
// #pragma data_seg("rtdata") is only recognized by MSFT C compiler.
|
||||
// But EBC compiler "Intel(R) C Compiler for EFI Byte Code, Version 1.2 Build 20040123"
|
||||
// does not recognize this pragma.
|
||||
//
|
||||
#if defined(_MSC_EXTENSIONS) && !defined(MDE_CPU_EBC)
|
||||
#pragma data_seg()
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue