alignas() used instead of set_alignment macro

This commit is contained in:
Nekotekina 2015-08-06 21:43:51 +03:00
parent 544fe531a3
commit 8d758b9088
7 changed files with 30 additions and 30 deletions

View file

@ -31,10 +31,10 @@
#define force_inline __attribute__((always_inline))
#endif
#if defined(_MSC_VER)
#define set_alignment(x) _CRT_ALIGN(x)
#else
#define set_alignment(x) __attribute__((aligned(x)))
#if defined(_MSC_VER) && _MSC_VER <= 1800
#define alignas(x) _CRT_ALIGN(x)
#elif defined(__GNUG__)
#define ALIGN(x) __attribute__((aligned(x))) // not used
#endif
#if defined(__GNUG__)