Replace Q_WS_WIN by Q_OS_WIN in uic/network.
Change-Id: I592936859f6932fcd1aa47f0617ba9f8efee86dc Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
19168ca21f
commit
bf96c83b15
@ -927,7 +927,7 @@ bool QNativeSocketEngine::waitForWrite(int msecs, bool *timedOut)
|
||||
// On Windows, the socket is in connected state if a call to
|
||||
// select(writable) is successful. In this case we should not
|
||||
// issue a second call to WSAConnect()
|
||||
#if defined (Q_WS_WIN)
|
||||
#if defined (Q_OS_WIN)
|
||||
if (ret > 0) {
|
||||
setState(QAbstractSocket::ConnectedState);
|
||||
d_func()->fetchConnectionParameters();
|
||||
@ -980,7 +980,7 @@ bool QNativeSocketEngine::waitForReadOrWrite(bool *readyToRead, bool *readyToWri
|
||||
// On Windows, the socket is in connected state if a call to
|
||||
// select(writable) is successful. In this case we should not
|
||||
// issue a second call to WSAConnect()
|
||||
#if defined (Q_WS_WIN)
|
||||
#if defined (Q_OS_WIN)
|
||||
if (checkWrite && ((readyToWrite && *readyToWrite) || !readyToWrite) && ret > 0) {
|
||||
setState(QAbstractSocket::ConnectedState);
|
||||
d_func()->fetchConnectionParameters();
|
||||
|
@ -300,7 +300,7 @@ bool Driver::uic(const QString &fileName, QTextStream *out)
|
||||
if (out) {
|
||||
m_output = out;
|
||||
} else {
|
||||
#ifdef Q_WS_WIN
|
||||
#ifdef Q_OS_WIN
|
||||
// As one might also redirect the output to a file on win,
|
||||
// we should not create the textstream with QFile::Text flag.
|
||||
// The redirected file is opened in TextMode and this will
|
||||
|
@ -62,10 +62,6 @@
|
||||
#include <QtCore/QTextStream>
|
||||
#include <QtCore/QDateTime>
|
||||
|
||||
#if defined Q_WS_WIN
|
||||
#include <qt_windows.h>
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
Uic::Uic(Driver *d)
|
||||
|
Loading…
Reference in New Issue
Block a user