aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-04-27 10:49:25 -0400
committerJack Lloyd <[email protected]>2017-04-27 10:49:25 -0400
commit7d3426f010fa287b8c16240418e6700d4d5add5c (patch)
treeec35362b1c22df6890459feb0cb57c7a1afef707 /src/lib
parent220a586420d9c6103165b65cd0f8b8831a96e901 (diff)
Add BOTAN_ALIGNAS macro for MSVC 2013
GH #1009
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/utils/compiler.h9
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)