03-09-2006 02:12 PM
03-09-2006 04:23 PM
Here is an excerpt from the chapter titled Compiler/Linker Issues:
Structure Packing
...
example:
#pragma pack (4) /* set maximum alignment to 4 */
typedef struct {
char a;
int b;
} MyStruct1;
typedef struct {
char a;
double b;
} MyStruct2;
#pragma pack () /* reset max alignment to default */
LabWindows/CVI predefines the __DEFALIGN macro to the default structure alignment of
the current compatible compiler.