From b998d4fe01c98541c9eed8742f6cfcdca6effbe3 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 3 Sep 2013 13:38:16 +0200 Subject: [PATCH] Fixed _WIN32_WINNT not being set to Windows XP. --- README.md | 2 ++ src/win32_platform.h | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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