This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: qt patch for winnt.h


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
sparingly.

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,
too.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]