mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
Fix type alignment macro inconsistencies
This commit is contained in:
parent
9ed749c9d2
commit
159414d39c
@ -10,6 +10,9 @@
|
|||||||
#ifdef memb_align
|
#ifdef memb_align
|
||||||
#undef memb_align
|
#undef memb_align
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef gcc_align
|
||||||
|
#undef gcc_align
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __zonecodegenerator
|
#ifdef __zonecodegenerator
|
||||||
#define type_align(x) alignas(x)
|
#define type_align(x) alignas(x)
|
||||||
@ -24,7 +27,7 @@
|
|||||||
#define gcc_align(x)
|
#define gcc_align(x)
|
||||||
#else
|
#else
|
||||||
#define type_align(x) __attribute__((__aligned__(x)))
|
#define type_align(x) __attribute__((__aligned__(x)))
|
||||||
#define tdef_align(x) /*__attribute__((__aligned__(x)))*/
|
#define tdef_align(x)
|
||||||
#define memb_align(x) __attribute__((__aligned__(x)))
|
#define memb_align(x) __attribute__((__aligned__(x)))
|
||||||
#define gcc_align(x) __attribute__((__aligned__(x)))
|
#define gcc_align(x) __attribute__((__aligned__(x)))
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user