Subject: Re: mklocale, take 2
To: Todd Vierling <tv@wasabisystems.com>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-toolchain
Date: 10/18/2001 16:28:00
On Thu, Oct 18, 2001 at 07:11:45PM -0400, Todd Vierling wrote:

 > Yes, and that's the point.  If the compiler doesn't support packed structs,
 > the code should be uncompilable on that compiler.  (Otherwise you'll end up
 > with nondescript errors and crashes thanks to the improper alignment of
 > data in the struct.)

#pragma packed has some ... issues...

For example, consider:

#pragma packed

/* a structure you want packed */

...now, what pragma do I use for:

/* another strucutre, that I don't want packed */

??

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>