diff --git a/README.md b/README.md index 8c944af3..0a8854ae 100644 --- a/README.md +++ b/README.md @@ -204,6 +204,8 @@ See the [GLFW documentation](http://www.glfw.org/docs/latest/). ## Changelog + - [Win32] Bugfix: `_WIN32_WINNT` was not set to Windows XP or later + ## Contact diff --git a/src/win32_platform.h b/src/win32_platform.h index e31abd9d..ba34368e 100644 --- a/src/win32_platform.h +++ b/src/win32_platform.h @@ -52,10 +52,13 @@ #define UNICODE #endif -// GLFW requires Windows XP +// GLFW requires Windows XP or later #ifndef WINVER #define WINVER 0x0501 #endif +#ifndef _WIN32_WINNT + #define _WIN32_WINNT 0x0501 +#endif #include #include