Skip to content

Commit 8023640

Browse files
committed
qt: Avoid non-self-contained Windows header
Using the `windows.h` header guarantees correctness regardless of the content of other headers. For more details, please refer to https://stackoverflow.com/questions/4845198/fatal-error-no-target-architecture-in-visual-studio Fixes the MSVC build when using the upcoming CMake-based build system and Qt packages installed via the vcpkg package manager.
1 parent 0375244 commit 8023640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/winshutdownmonitor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <QString>
1111
#include <functional>
1212

13-
#include <windef.h> // for HWND
13+
#include <windows.h>
1414

1515
#include <QAbstractNativeEventFilter>
1616

0 commit comments

Comments
 (0)