This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

#pragma pack(push,2) equivalent

 Hi,

    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....