From f339bda6e278c22d519f9d4e349995d4c2707fc2 Mon Sep 17 00:00:00 2001 From: Sacha Date: Fri, 25 Jul 2014 14:41:23 +1000 Subject: [PATCH] SystemInfo is never installed by default, so make it optional. --- base/QtMain.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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