Jim Michaels wrote:
> the point is, I shouldn't have to modify the code.  it should be done
> with compiler switches. unless your method of "packing" is compiler
> independent.
>
> the compiler shouldn't balk when I throw the -fpack-struct switch.
> so why did they even make the switch if it's not going to work?
> actually, it only works in ANSI C code.  I will grant you that.  so
> it only half works. :-/ Jim Michaels
>

Microsoft requires struct be aligned on 4 byte boundaries.  If you don't
want to do that manually you should be able to add -mms-bitfields to the
compiler switches.  I don't know why -fpact-struct doesn't do that
already and I suggest you search the GCC archives to determine that.

--
Earnie

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to