From 76b1940ad6f5f058c4a6bec35902da9f6d4e27b0 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 7 Mar 2014 09:46:44 +0100 Subject: [PATCH] w32: Define WINVER only if needed. * common/sysutils.c (WINVER): Define only if less that 5.0. --- common/sysutils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/sysutils.c b/common/sysutils.c index a00cd94d1..f0c2ad8a8 100644 --- a/common/sysutils.c +++ b/common/sysutils.c @@ -54,7 +54,9 @@ # include #endif #ifdef HAVE_W32_SYSTEM -# define WINVER 0x0500 /* Required for AllowSetForegroundWindow. */ +# if WINVER < 0x0500 +# define WINVER 0x0500 /* Required for AllowSetForegroundWindow. */ +# endif # include #endif #ifdef HAVE_NPTH