w32: Define WINVER only if needed.

* common/sysutils.c (WINVER): Define only if less that 5.0.
This commit is contained in:
Werner Koch 2014-03-07 09:46:44 +01:00
parent 63b7658a29
commit 76b1940ad6
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,9 @@
# include <sys/resource.h>
#endif
#ifdef HAVE_W32_SYSTEM
# define WINVER 0x0500 /* Required for AllowSetForegroundWindow. */
# if WINVER < 0x0500
# define WINVER 0x0500 /* Required for AllowSetForegroundWindow. */
# endif
# include <windows.h>
#endif
#ifdef HAVE_NPTH