Commit d401a77eff2dd2880e9fce47c770457146034a36

Sam Lantinga 2018-03-10T21:22:42

Fixed bug 4102 - define _WIN32_WINNT_WIN7 if not already defined Ozkan Sezer The following patch defines _WIN32_WINNT_WIN7 if it is not already defined in core/windows/SDL_windows.c, similar to what is already there for _WIN32_WINNT_VISTA.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/core/windows/SDL_windows.c b/src/core/windows/SDL_windows.c
index 6624043..4da7d07 100644
--- a/src/core/windows/SDL_windows.c
+++ b/src/core/windows/SDL_windows.c
@@ -31,6 +31,9 @@
 #ifndef _WIN32_WINNT_VISTA
 #define _WIN32_WINNT_VISTA  0x0600
 #endif
+#ifndef _WIN32_WINNT_WIN7
+#define _WIN32_WINNT_WIN7   0x0601
+#endif
 
 
 /* Sets an error message based on an HRESULT */