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