diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-11-16 06:19:47 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-11-16 06:19:47 +0000 |
commit | b026832eadf7d1be84741cd8cab570e984460fe7 (patch) | |
tree | 10aaa931c28bf74dd8fca193dd1f3bbc0f1ec83c | |
parent | 14a32a70c262396b9e384b3c385159da88356e84 (diff) | |
download | edk2-platforms-b026832eadf7d1be84741cd8cab570e984460fe7.tar.xz |
Add gcc macro to remove pack() for gcc build
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1962 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdePkg/Include/Common/BootScript.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MdePkg/Include/Common/BootScript.h b/MdePkg/Include/Common/BootScript.h index 8e2ddb9d1a..a6b6f50b1f 100644 --- a/MdePkg/Include/Common/BootScript.h +++ b/MdePkg/Include/Common/BootScript.h @@ -40,7 +40,9 @@ #define EFI_BOOT_SCRIPT_TABLE_OPCODE 0xAA
#define EFI_BOOT_SCRIPT_TERMINATE_OPCODE 0xFF
+#ifndef __GNUC__
#pragma pack(1)
+#endif
//
// EFI Boot Script Width
@@ -206,6 +208,8 @@ typedef union { UINT8 *Raw;
} BOOT_SCRIPT_POINTERS;
+#ifndef __GNUC__
#pragma pack()
+#endif
#endif
|