General: Replace GC_ALIGN macros with alignas

Standard supported alignment -> out with compiler-specific.
This commit is contained in:
Lioncash
2015-09-05 11:44:21 -04:00
parent c08a83a5aa
commit 8ce04f9a65
19 changed files with 73 additions and 84 deletions

View File

@ -137,7 +137,7 @@ TEST(BitField, Alignment)
};
#pragma pack()
GC_ALIGNED16(OddlyAlignedTestStruct test_struct);
alignas(16) OddlyAlignedTestStruct test_struct;
TestUnion& object = test_struct.obj;
static_assert(alignof(decltype(test_struct.obj.signed_1bit)) == 1,
"Incorrect variable alignment");