qt patch for winnt.h

Christopher Faylor cgf@redhat.com
Thu Jul 25 13:15:00 GMT 2002

On Thu, Jul 25, 2002 at 09:43:16PM +0200, Ralf Habacker wrote:
>> I do prefer feature-centric ifdefs, but I don't think that adding this
>> particular definition of HANDLE to the windows headers makes sense.
>I think too, but you have another solution yet. :-)

Not my yob.

Although this is an open source project and you do have the advantage of
being able to talk to the people who own the system headers, I really think
that making changes like this in system headers should be done very very

What would you do if this was Sun?  Lobby them to change their headers?

I'm sure that Danny will comment on this.  He's probably doing something
selfish like sleeping or eating breakfast right now.

>> Isn't it possible to protect the handle with a define somewhere prior
>> to calling winnt.h and then undefine it after the includes?
>I'm not sure, how this would look in real code, do you have an example ?

#define HANDLE foo_handle
#include <winnt.h>
#undef HANDLE

Another thing I have to wonder is why you are using a mixture of the
Windows API and the X API rather than X + cygwin.  That seems strange,


More information about the Cygwin-patches mailing list