Set the struct alignment to 4-byte.
When setting the alignment for a struct in order to match a particular environment (e.g. host/plug-in binary compatibility) the following macros are recommended:
Usage notes
- Do not place other file
#include
after this file. For example:
#include AAX_Push4ByteStructAlignment.h
#include HeaderFile2.h
#include AAX_PopStructAlignment.h
This will cause problems if HeaderFile2.h is included elsewhere without the 4-byte alignment which will manifest as hard to find run-time bugs. The proper usage is:
#include HeaderFile2.h
#include AAX_Push4ByteStructAlignment.h
#include AAX_PopStructAlignment.h
- See also
- AAX_Push2ByteStructAlignment.h
-
AAX_Push8ByteStructAlignment.h
-
AAX_PopStructAlignment.h