On Wed, 24 Apr 2002, Schettino, John wrote:

> I believe 
> #pragma packed

Not with GCC... in that case you need to put the following at the end of
every variable (and in the case of structures, after each member I
believe):

        __attribute__ ((__packed__))

Ex:

        int nVersion __attribute ((__packed__));

Naturally, it's easier to use a #define to save a ton of typing :-)

-----------------------------------------------------------------------
Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/
Software Developer  //  Gamer  //   Webmaster  //  System Administrator
Friends don't let friends wear Speedos.  Ever.



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

Reply via email to