Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/common/attributes.h')
-rw-r--r--include/common/attributes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/common/attributes.h b/include/common/attributes.h
index 78ee474..5d665b9 100644
--- 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: