From 7ef3dacdc2cdd9d87e6ac74943b2b895cc8739c0 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 30 Apr 2019 23:00:56 -0400 Subject: Remove C++11 constexpr code for CRYPTOPP_ALIGN_DATA (PR #830) I don't have faith in it even though it has tested good so far. --- blake2.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'blake2.cpp') diff --git a/blake2.cpp b/blake2.cpp index 4623d23b..71c3a432 100644 --- a/blake2.cpp +++ b/blake2.cpp @@ -44,13 +44,10 @@ #endif // Can't use GetAlignmentOf() because of C++11 and constexpr -// Can use 'const unsigned int' because of MSVC +// Can use 'const unsigned int' because of MSVC 2013 #if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64) # define ALIGN_SPEC32 16 # define ALIGN_SPEC64 16 -#elif (CRYPTOPP_CXX11_ALIGNOF) -# define ALIGN_SPEC32 alignof(CryptoPP::word32) -# define ALIGN_SPEC64 alignof(CryptoPP::word64) #else # define ALIGN_SPEC32 4 # define ALIGN_SPEC64 8 -- cgit v1.2.1