• Resolved

#pragma pack(push,2) equivalent


    I am trying to read an image data. BMP image is aligned as 2byte block. I am using 32 bit compiler so which is taking 4byte block at a time. So i used #pragma pack(push,2) for alignment of 2 byte. I trying to do same in code composer studio but its giving a warning message unrecognized #pragma. I tried with bit fields no use... can any one give idea what to use instead of #pragma....