Commit 18b69609 authored by Steve Lhomme's avatar Steve Lhomme

attributes: define the ALIGN() macro for MSVC

parent 92b7e8bd
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment