Clean up some Q_WS_WIN
Q_WS_WIN does not exist any more. Change-Id: Icb7f542cfcd4d21e994f246ff665583cb6b57610 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
4ee14d6f87
commit
4df6e05849
@ -76,7 +76,7 @@ extern "C" MY_EXPORT int avg(int a, int b)
|
||||
|
||||
|
||||
//! [4]
|
||||
#ifdef Q_WS_WIN
|
||||
#ifdef Q_OS_WIN
|
||||
#define MY_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define MY_EXPORT
|
||||
|
@ -53,7 +53,7 @@
|
||||
#include <qstringlist.h>
|
||||
#include <qvector.h>
|
||||
|
||||
#if !defined Q_WS_WIN32
|
||||
#if !defined Q_OS_WIN
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include <sqlite.h>
|
||||
@ -208,7 +208,7 @@ bool QSQLite2ResultPrivate::fetchNext(QSqlCachedResult::ValueCache &values, int
|
||||
// keep trying while busy, wish I could implement this better.
|
||||
while ((res = sqlite_step(currentMachine, &colNum, &fvals, &cnames)) == SQLITE_BUSY) {
|
||||
// sleep instead requesting result again immidiately.
|
||||
#if defined Q_WS_WIN32
|
||||
#if defined Q_OS_WIN
|
||||
Sleep(1000);
|
||||
#else
|
||||
sleep(1);
|
||||
|
Loading…
Reference in New Issue
Block a user