qt patch for winnt.h

Nicholas Wourms nwourms@netscape.net
Thu Jul 25 08:29:00 GMT 2002


Hi,

As you may or may not know, I'm going to be providing the QT-2.3.1 
package for the main cygwin distribution.  However, an annoying 
"feature" of QT is that one of its typdefs conflicts with a typedef in 
winnt.h [typedef void *HANDLE].  However, QT  requires [typedef unsigned 
int HANDLE] and refuses to compile with the wrong typedef.  Ralf has 
tried everything over at the kde-cygwin project to get around this 
without tampering with the system headers.  In the end, however, we 
discovered that it would require a massive overhaul of qt-2 to do this. 
 Therefore we think it would be much more simple to just add a gaurded 
#ifndef to winnt.h.  That way it will continue to work as it always has 
-- unless you define QT_CYGWIN -- in which case the typedef for qt would 
be used instead.  Attached is the patch and ChangeLog.

Cheers,
Nicholas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ChangeLog.txt
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020725/d5eeaaae/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qt-cygwin.diff
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020725/d5eeaaae/attachment.ksh>


More information about the Cygwin-patches mailing list