diff --git a/base/QtMain.cpp b/base/QtMain.cpp index 88da2b6c58..da1b74800c 100644 --- a/base/QtMain.cpp +++ b/base/QtMain.cpp @@ -15,8 +15,10 @@ #if QT_VERSION > QT_VERSION_CHECK(5, 0, 0) #include +#ifdef QT_HAS_SYSTEMINFO #include #endif +#endif #ifdef __SYMBIAN32__ #include @@ -128,7 +130,7 @@ static int mainInternal(QApplication &a) QSystemScreenSaver ssObject(emugl); ssObject.setScreenSaverInhibit(); QScopedPointer mediakeys(new SymbianMediaKeys()); -#elif QT_VERSION > QT_VERSION_CHECK(5, 0, 0) +#elif defined(QT_HAS_SYSTEMINFO) QScreenSaver ssObject(emugl); ssObject.setScreenSaverEnabled(false); #endif