summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/winmain/qtmain_win.cpp13
-rw-r--r--src/winmain/winmain.pro2
2 files changed, 4 insertions, 11 deletions
diff --git a/src/winmain/qtmain_win.cpp b/src/winmain/qtmain_win.cpp
index 0f29c6ac95..5520a447a9 100644
--- a/src/winmain/qtmain_win.cpp
+++ b/src/winmain/qtmain_win.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Windows main function of the Qt Toolkit.
@@ -48,12 +48,8 @@
**
****************************************************************************/
-#include "qt_windows.h"
-#include "qbytearray.h"
-#include "qstring.h"
-#include "qvector.h"
-
-#include <shlobj.h>
+#include <windows.h>
+#include <shellapi.h>
/*
This file contains the code in the qtmain library for Windows.
@@ -64,9 +60,6 @@
invoked.
*/
-QT_USE_NAMESPACE
-
-
#if defined(QT_NEEDS_QMAIN)
int qMain(int, char **);
#define main qMain
diff --git a/src/winmain/winmain.pro b/src/winmain/winmain.pro
index 61e9f29d23..9cb6ab0c59 100644
--- a/src/winmain/winmain.pro
+++ b/src/winmain/winmain.pro
@@ -21,8 +21,8 @@ mingw: DEFINES += QT_NEEDS_QMAIN
winrt {
SOURCES = qtmain_winrt.cpp
} else {
+ CONFIG -= qt
SOURCES = qtmain_win.cpp
-
LIBS += -lshell32
}