On Friday 13 August 2004 13:55, Francois Gouget wrote:
- compiling the test with the Windows headers may result in different
sizes/alignments if the Wine headers got the packign wrong. If that's the case, the compiler will put in different values for sizeof(struct X) which will result in something like ok(4==8,"...");
Changing the compiler but keeping the same set of headers may also result in different sizes/alignments. This was the case some time ago when MinGW appeared to align structures containing a double to 8 bytes whereas gcc would align those to 4 bytes.
-Hans
On Fri, 13 Aug 2004, Hans Leidekker wrote:
On Friday 13 August 2004 13:55, Francois Gouget wrote:
- compiling the test with the Windows headers may result in different
sizes/alignments if the Wine headers got the packign wrong. If that's the case, the compiler will put in different values for sizeof(struct X) which will result in something like ok(4==8,"...");
Changing the compiler but keeping the same set of headers may also result in different sizes/alignments.
Our headers are supposed to compensate for that. If that's not the case then one of the compilers will produce code that is not binary compatible with Windows applications. I.e. Wine will be unusable.