PDA

View Full Version : #pragma pack on Mac (for align the structure)




naveen
Dec 30, 2004, 08:31 AM
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



naveen
Jan 2, 2005, 10:52 PM
HI all

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



Thanks and Regards