aboutsummaryrefslogtreecommitdiffstats
path: root/common/sysutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/sysutils.c')
-rw-r--r--common/sysutils.c4
1 files changed, 3 insertions, 1 deletions
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 <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