1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

Use portable alignment macro to be compatible with Linux/macOS

This commit is contained in:
Mounir IDRASSI
2024-11-13 09:36:06 +01:00
parent 75152f7dc0
commit 951c8d210b

View File

@@ -14,6 +14,7 @@
#define TC_HEADER_Boot_BootCommon #define TC_HEADER_Boot_BootCommon
#include "Common/Password.h" #include "Common/Password.h"
#include "Crypto/config.h"
#include "BootDefs.h" #include "BootDefs.h"
// The user will be advised to upgrade the rescue disk if upgrading from the following or any previous version // The user will be advised to upgrade the rescue disk if upgrading from the following or any previous version
@@ -58,7 +59,7 @@ typedef struct
uint16 CryptoInfoOffset; uint16 CryptoInfoOffset;
uint16 CryptoInfoLength; uint16 CryptoInfoLength;
uint32 HeaderSaltCrc32; uint32 HeaderSaltCrc32;
__declspec(align(8)) PasswordLegacy BootPassword; CRYPTOPP_ALIGN_DATA(8) PasswordLegacy BootPassword;
uint64 HiddenSystemPartitionStart; uint64 HiddenSystemPartitionStart;
uint64 DecoySystemPartitionStart; uint64 DecoySystemPartitionStart;
uint32 Flags; uint32 Flags;