does anyone know how i can byte align structures in a header file so they don't get padded with extra space?
normally i would do:
e.g.
#pragma pack(push)
#pragma pack(1)
struct sBmpFileHeader
{
word bfType;
dword bfSize;
word bfReserved1;
word bfReserved2;
dword bfOffBits;
};
#pragma pack(pop)
but GCC compiler outputs "ignoring pragmas" ! (or something like)
normally i would do:
e.g.
#pragma pack(push)
#pragma pack(1)
struct sBmpFileHeader
{
word bfType;
dword bfSize;
word bfReserved1;
word bfReserved2;
dword bfOffBits;
};
#pragma pack(pop)
but GCC compiler outputs "ignoring pragmas" ! (or something like)