diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-02-28 03:48:13 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-02-28 03:48:13 +0000 |
commit | 5d09d1b775b203c349ae629cea796e224d71d212 (patch) | |
tree | 5127b1be3581e91a2a01452a4665d99abcfeb287 /EdkModulePkg | |
parent | c3ebca2cf392e2908f3f35d5d0f7448e4237ec69 (diff) | |
download | edk2-platforms-5d09d1b775b203c349ae629cea796e224d71d212.tar.xz |
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
Diffstat (limited to 'EdkModulePkg')
-rw-r--r-- | EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Decode.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Decode.c b/EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Decode.c index 02773d4e3d..e8de00b1e3 100644 --- a/EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Decode.c +++ b/EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Decode.c @@ -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
|