diff options
Diffstat (limited to 'include/aes/workarounds.h')
-rw-r--r-- | include/aes/workarounds.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/aes/workarounds.h b/include/aes/workarounds.h new file mode 100644 index 0000000..45fece2 --- /dev/null +++ b/include/aes/workarounds.h @@ -0,0 +1,14 @@ +// Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com> +// This file is part of the "AES tools" project. +// For details, see https://github.com/egor-tensin/aes-tools. +// Distributed under the MIT License. + +#pragma once + +#if defined(_MSC_VER) +#define AES_ALIGN(t, x) __declspec(align(x)) t +#elif defined(__GNUC__) || defined(__MINGW32__) +#define AES_ALIGN(t, x) t __attribute__((aligned(x))) +#else +#warning "couldn't determine alignment attribute" +#endif |