mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
General: Replace GC_ALIGN macros with alignas
Standard supported alignment -> out with compiler-specific.
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user