aboutsummaryrefslogtreecommitdiff
path: root/src/qt/winshutdownmonitor.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-01-25 10:26:26 +0000
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-01-25 10:26:26 +0000
commit8023640a71a10ec54a6a8e6b95a29d07f7be218d (patch)
tree5c69939fdc4828a8b16a795dfc798be0738c6ada /src/qt/winshutdownmonitor.h
parent03752444cd54df05a731557968d5a9f33a55c55c (diff)
downloadbitcoin-8023640a71a10ec54a6a8e6b95a29d07f7be218d.tar.xz
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.
Diffstat (limited to 'src/qt/winshutdownmonitor.h')
-rw-r--r--src/qt/winshutdownmonitor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/winshutdownmonitor.h b/src/qt/winshutdownmonitor.h
index 78f287637f..060d8546e3 100644
--- a/src/qt/winshutdownmonitor.h
+++ b/src/qt/winshutdownmonitor.h
@@ -10,7 +10,7 @@
#include <QString>
#include <functional>
-#include <windef.h> // for HWND
+#include <windows.h>
#include <QAbstractNativeEventFilter>