On Fri, Jun 16, 2006 at 09:16:09AM +0100, Angus Leeming wrote: > Georg Baum wrote: > > Enrico Forestieri wrote: > >> Please, don't use _WIN32 in place of > >> Q_WS_WIN when something is related > >> to Qt. Q_WS_WIN is also defined when > >> using a cygwin Qt/native (I mean > >> non-X11), whereas _WIN32 is not. In > >> this case the Windows clipboard is > >> used, so I think that it should be > >> #elif defined(Q_WS_WIN). > > > This is in src/support, we don't have > > Q_WS_WIN there. What should I use? > > See src/support/os.C. Something like: > > #if defined (_WIN32) || defined (CYGWIN)
No, this would also affect an X11 build where the X clipboard is used. Something like the following should be ok: #if defined (_WIN32) || (defined (__CYGWIN__) && defined (X_DISPLAY_MISSING)) -- Enrico