ref: 18b69609a2ec2c6e15db6867c83bc3b7cde6137e
parent: 92b7e8bd536228b145e6c315987a4908bea3b38a
author: Steve Lhomme <slhomme@videolan.org>
date: Thu Sep 27 09:24:46 EDT 2018
attributes: define the ALIGN() macro for MSVC
--- a/include/common/attributes.h
+++ b/include/common/attributes.h
@@ -36,8 +36,13 @@
* becomes:
* ALIGN(uint8_t var[1][2][3][4], alignment).
*/
+#ifdef _MSC_VER
+#define ALIGN(ll, a) \
+ __declspec(align(a)) ll
+#else
#define ALIGN(line, align) \
line __attribute__((aligned(align)))
+#endif
/*
* API for stack alignment (ALIGN_STK_$align()) of variables like: