#pragma pack on Mac (for align the structure)

Discussion in 'Mac Programming' started by naveen, Dec 30, 2004.

  1. naveen macrumors member

    Oct 27, 2004
    Hi all

    I am working on QT( C++ GUI Programming Kit) for Mac OSX. In one of .h file in my project i have problem in structure member's values.
    This structure containinng the char, long, double members( structure is of size 512 bytes).
    I have used the #pragma pack(push,1) in the beginning of .h file and used #pragma pack(pop) in the end of .h file.
    What line of code i have to add to align the structure on Mac OSX in c++.

    Thanks and Regards
  2. naveen thread starter macrumors member

    Oct 27, 2004
    byte alignment

    HI all

    I want to byte align the structure. If anybody have idea plz help me.

    Thanks and Regards

Share This Page