From 3415f3ccdef59cec52b3227c2388f2ac8bce8c89 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Fri, 13 Sep 2013 12:27:43 +0200 Subject: [PATCH] Conditionally define API version macros. --- src/win32_platform.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/win32_platform.h b/src/win32_platform.h index ba34368e..1652ab8c 100644 --- a/src/win32_platform.h +++ b/src/win32_platform.h @@ -53,10 +53,12 @@ #endif // GLFW requires Windows XP or later -#ifndef WINVER +#if WINVER < 0x0501 + #undef WINVER #define WINVER 0x0501 #endif -#ifndef _WIN32_WINNT +#if _WIN32_WINNT < 0x0501 + #undef _WIN32_WINNT #define _WIN32_WINNT 0x0501 #endif