[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: DOS packing patch (fix)
From: Lionel Ulmer <lionel.ulmer () free ! fr>
Date: 2001-12-25 9:06:30
[Download RAW message or body]
Hi all,
I am a bit worried by this patch : I looked at how "pshpack1.h" works, and
it uses the '#pragma pack(1)' method when compiling with GCC.
> +/* WARNING: one byte packed structs from here !! (i.e. not DWORD aligned) */
> +#include "pshpack1.h"
> +
And I wonder if this really works as with the latest versions of GCC (2.95.3
onwards AFAIK), '#pragma pack(1)' is ignored (at least on my self-compiled
GCC :-) ) and you need to use the '__attribute((__packed__))' construction
after each structure.
But well, I may say completely stupid things as otherwise a lot of bugs
would exist in Wine...
Lionel
PS: Merry Christmas all :-)
--
Lionel Ulmer - http://www.bbrox.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic