VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2024-11-13 09:36:06 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2024-11-13 09:36:06 +0100
commit951c8d210b7a648a9b3bdb13e0cb0435d26ce850 (patch)
tree560c79389795574a7d2883daa59d3e981fa62e34
parent75152f7dc0279c9468bfa08e283f1b0b9d87d9cc (diff)
downloadVeraCrypt-951c8d210b7a648a9b3bdb13e0cb0435d26ce850.tar.gz
VeraCrypt-951c8d210b7a648a9b3bdb13e0cb0435d26ce850.zip
Use portable alignment macro to be compatible with Linux/macOS
-rw-r--r--src/Boot/Windows/BootCommon.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Boot/Windows/BootCommon.h b/src/Boot/Windows/BootCommon.h
index c17058b8..0e6c973c 100644
--- a/src/Boot/Windows/BootCommon.h
+++ b/src/Boot/Windows/BootCommon.h
@@ -14,6 +14,7 @@
#define TC_HEADER_Boot_BootCommon
#include "Common/Password.h"
+#include "Crypto/config.h"
#include "BootDefs.h"
// 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 CryptoInfoLength;
uint32 HeaderSaltCrc32;
- __declspec(align(8)) PasswordLegacy BootPassword;
+ CRYPTOPP_ALIGN_DATA(8) PasswordLegacy BootPassword;
uint64 HiddenSystemPartitionStart;
uint64 DecoySystemPartitionStart;
uint32 Flags;