Crypto: document that CRYPTOPP_ALIGN_DATA can expand to nothing (#1842)

The macro falls through to an empty definition for the MSVC bootloader build
(TC_WINDOWS_BOOT) and for compilers that are neither MSVC nor GCC/Clang. The
ks and ks2 members of CRYPTO_INFO are compiled into the bootloader and are
declared with it, so the caveat is reachable.
This commit is contained in:
Bernard Ladenthin
2026-10-13 19:30:32 +09:00
committed by GitHub
parent e9992cf778
commit b31bd203d4
+2
View File
@@ -61,6 +61,8 @@
#elif defined(__GNUC__)
#define CRYPTOPP_ALIGN_DATA(x) __attribute__((aligned(x)))
#else
// Note: expands to nothing for the MSVC bootloader build (TC_WINDOWS_BOOT) and for
// compilers that are neither MSVC nor GCC/Clang, so alignment is not guaranteed there.
#define CRYPTOPP_ALIGN_DATA(x)
#endif
#endif