Fixed MinGW build by declaring the minimal required Windows version.

Also deleted miscellaneous remaining multimon cruft.
Deleted #include <winuser.h>, because <windows.h> includes it
already.

This should have a nice side effect of preventing us from
accidentally using any Windows API that's too new.
(cherry picked from commit 795c108f2b)
This commit is contained in:
Roman Donchenko
2013-12-30 18:00:29 +04:00
committed by Alexander Smorkalov
parent 5170f0b5da
commit 5e00fc6afe
2 changed files with 8 additions and 16 deletions

View File

@@ -57,6 +57,14 @@
#include <assert.h>
#if defined WIN32 || defined WINCE
#if !defined _WIN32_WINNT
#ifdef HAVE_MSMF
#define _WIN32_WINNT 0x0600 // Windows Vista
#else
#define _WIN32_WINNT 0x0500 // Windows 2000
#endif
#endif
#include <windows.h>
#undef small
#undef min