Patch, Version 4: Problem solved

Mumit Khan
Tue May 4 15:11:00 GMT 1999

On Tue, 4 May 1999, Anders Norlander wrote:

> Yes, I agree to this as well. Although old gcc don't.

That was a bug in gcc fixed in recent years, and not a feature. 

> Hmm. I hadn't considered that MS may have used different packings.
> > I also checked the code using `#pragma pack(4)', and get the same result
> > from both compilers.
> The question is should we go for PACKED on particular structures or
> should
> everything in winnt be pack(4)?

As usual, my lack of win32 api knowledge disqualifies me from making any
comment here. This particular case was a hunch based on the structure
definition, but I haven't cross checked with MS API doc/header yet.

I believe there are just a few places where MS uses different packings,
and there was some discussion some time ago where these are. Jacob Navia
is one of the few people who've endured through most of these when
creating his headers. 

You can't win them all, especially all at once. There will always be bugs
and they'll be fixed as they come up.


More information about the Cygwin-developers mailing list