diff --git a/src/main.cpp b/src/main.cpp index 08a1dbc3d5980ee56c2571b19308110c287273fa..7999ecb7ce281fea5af2d6d9dbc2cd0bc3bba84a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,4 @@ +#include <QtGlobal> #include <QString> #include <QStringList> #include <QUrl> @@ -16,9 +17,9 @@ int main(int argc, char *argv[]) { // Init - if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) { - QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - } +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif QGuiApplication app(argc, argv); Core::Config *config = new Core::Config(":/configs"); Core::Network *network = new Core::Network(true);