diff options
| author | Rémi Verschelde | 2017-01-08 20:41:11 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-01-12 19:15:30 +0100 |
| commit | d66740175eef6f67f2edb364533fa71eaad5ceb7 (patch) | |
| tree | b4daa3744d7c39a9366344b63e4bd53840903293 /platform/windows/key_mapping_win.cpp | |
| parent | 5672852351d9d47c848bafad14bb031f176b8558 (diff) | |
| download | godot-d66740175eef6f67f2edb364533fa71eaad5ceb7.tar.gz godot-d66740175eef6f67f2edb364533fa71eaad5ceb7.tar.zst godot-d66740175eef6f67f2edb364533fa71eaad5ceb7.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.
(cherry picked from commit 6323779596dea0db7f58afef7d3d3d5588ef20cb)
Diffstat (limited to 'platform/windows/key_mapping_win.cpp')
| -rw-r--r-- | platform/windows/key_mapping_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/key_mapping_win.cpp b/platform/windows/key_mapping_win.cpp index 00a0ca79c..9ab222e9e 100644 --- a/platform/windows/key_mapping_win.cpp +++ b/platform/windows/key_mapping_win.cpp @@ -26,8 +26,8 @@ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ -#define WINVER 0x0500 #include "key_mapping_win.h" + #include <stdio.h> struct _WinTranslatePair { |
