Move CRYPTO_ALIGN after the struct keyword

Fixes #543
This commit is contained in:
Frank Denis 2017-05-16 12:40:36 +02:00
parent 2d210e0771
commit f72bcfacd7
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ extern "C" {
# pragma pack(push, 1) # pragma pack(push, 1)
#endif #endif
typedef CRYPTO_ALIGN(64) struct crypto_generichash_blake2b_state { typedef struct CRYPTO_ALIGN(64) crypto_generichash_blake2b_state {
uint64_t h[8]; uint64_t h[8];
uint64_t t[2]; uint64_t t[2];
uint64_t f[2]; uint64_t f[2];

View File

@ -16,7 +16,7 @@ extern "C" {
#include "export.h" #include "export.h"
typedef CRYPTO_ALIGN(16) struct crypto_onetimeauth_poly1305_state { typedef struct CRYPTO_ALIGN(16) crypto_onetimeauth_poly1305_state {
unsigned char opaque[256]; unsigned char opaque[256];
} crypto_onetimeauth_poly1305_state; } crypto_onetimeauth_poly1305_state;