aboutsummaryrefslogtreecommitdiff
path: root/platform/windows/os_windows.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-01-08 20:41:11 +0100
committerRémi Verschelde2017-01-08 20:41:26 +0100
commit6323779596dea0db7f58afef7d3d3d5588ef20cb (patch)
tree92bdd7947486ddb6820eb0225d6b345ee69ac432 /platform/windows/os_windows.cpp
parent920947f297ff3b8d959d15c8e15e7a28dcbdb08f (diff)
downloadgodot-6323779596dea0db7f58afef7d3d3d5588ef20cb.tar.gz
godot-6323779596dea0db7f58afef7d3d3d5588ef20cb.tar.zst
godot-6323779596dea0db7f58afef7d3d3d5588ef20cb.zip
Windows: Define _WIN32_WINRT to 0x0600 (Vista)
Passed as a compiler define to be sure it is always define before windows.h is loaded. This means that Godot officially requires Vista API or later, it will not work on Windows XP or earlier. Also fix a bogus check for Windows 7 API.
Diffstat (limited to '')
-rw-r--r--platform/windows/os_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index 971ec25f7..34ea9cd15 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -677,7 +677,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd,UINT uMsg, WPARAM wParam, LPARAM lParam) {
print_line("input lang change");
} break;
- #if WINVER >= 0x0700 // for windows 7
+ #if WINVER >= 0x0601 // for windows 7
case WM_TOUCH: {
BOOL bHandled = FALSE;