From 1ef60cb893e9cbfd93f44c82a2270c1fe2362923 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 8 Dec 2017 19:26:43 +0100 Subject: [PATCH] win: ensure definitions for Vista or later are included --- src/win.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/win.h b/src/win.h index 9abd59d..b6b1329 100644 --- a/src/win.h +++ b/src/win.h @@ -5,6 +5,14 @@ #define WIN32_LEAN_AND_MEAN #endif +#if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0600 +#undef _WIN32_WINNT +#endif + +#ifndef _WIN32_WINNT +#define _WIN32_WINNT 0x0600 +#endif + #pragma warning(push, 1) #include