diff options
author | Jack Lloyd <[email protected]> | 2017-04-27 10:49:25 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-04-27 10:49:25 -0400 |
commit | 7d3426f010fa287b8c16240418e6700d4d5add5c (patch) | |
tree | ec35362b1c22df6890459feb0cb57c7a1afef707 /src/lib | |
parent | 220a586420d9c6103165b65cd0f8b8831a96e901 (diff) |
Add BOTAN_ALIGNAS macro for MSVC 2013
GH #1009
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/utils/compiler.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/utils/compiler.h b/src/lib/utils/compiler.h index 898412501..7c2593ed8 100644 --- a/src/lib/utils/compiler.h +++ b/src/lib/utils/compiler.h @@ -117,6 +117,15 @@ #endif /* +* Define BOTAN_ALIGNAS (for MSVC 2013) +*/ +#if defined(BOTAN_BUILD_COMPILER_IS_MSVC_2013) + #define BOTAN_ALIGNAS(n) /**/ +#else + #define BOTAN_ALIGNAS(n) alignas(n) +#endif + +/* * Define BOTAN_PARALLEL_FOR */ #if !defined(BOTAN_PARALLEL_FOR) |