Skip to content

Commit

Permalink
qt: Avoid non-self-contained Windows header
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hebasto committed Jan 19, 2024
1 parent 0375244 commit c95767a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/winshutdownmonitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <QString>
#include <functional>

#include <windef.h> // for HWND
#include <windows.h> // for HWND

#include <QAbstractNativeEventFilter>

Expand Down

0 comments on commit c95767a

Please sign in to comment.