Then shouldn't changing the order of the members fix that
typedef struct tagKeyBlock
{
unsigned long nHash_:32 ;
unsigned int nSerialNumber_:16 ;
unsigned int nVersion_:8 ;
} KeyBlock; 

nHash is of course OK
nSerial is at a 2 byte boundry
nVersion is at a 1 byte boundry

This was taken from a gcc project which builds fine and the sizeof is 7 on GCC.
On CW it's still getting padded to 8 no matter what pragma options I provide.

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to