summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-03-07 09:46:44 +0100
committerWerner Koch <wk@gnupg.org>2014-03-07 09:52:10 +0100
commit76b1940ad6f5f058c4a6bec35902da9f6d4e27b0 (patch)
tree6188b185ab29378aa59691619c8fd5a33c9102aa /common
parentw32: Remove unused code. (diff)
downloadgnupg2-76b1940ad6f5f058c4a6bec35902da9f6d4e27b0.tar.xz
gnupg2-76b1940ad6f5f058c4a6bec35902da9f6d4e27b0.zip
w32: Define WINVER only if needed.
* common/sysutils.c (WINVER): Define only if less that 5.0.
Diffstat (limited to 'common')
-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