windows: Set _WIN32_WINNT to 0x0601 (Windows 7)

Also remove all defines in many places and define it in configure stage to keep consistency.
This commit is contained in:
Chun Kuan Lee
2018-12-13 18:24:30 +08:00
parent 82cf6813a4
commit 1bd9ffdd44
6 changed files with 2 additions and 18 deletions

View File

@@ -10,10 +10,6 @@
#endif
#ifdef WIN32
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x0501
#define WIN32_LEAN_AND_MEAN 1
#ifndef NOMINMAX
#define NOMINMAX