win: ensure definitions for Vista or later are included

This commit is contained in:
Bert Belder 2017-12-08 19:26:43 +01:00
parent a2eeaa5f82
commit 1ef60cb893

View File

@ -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 <windows.h>