aboutsummaryrefslogtreecommitdiffstats
path: root/g10/photoid.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/photoid.c')
-rw-r--r--g10/photoid.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/g10/photoid.c b/g10/photoid.c
index 66240ecc2..fb7f7b91f 100644
--- a/g10/photoid.c
+++ b/g10/photoid.c
@@ -22,8 +22,11 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
-#ifdef HAVE_DOSISH_SYSTEM
-#include <windows.h>
+#ifdef __MINGW32__
+# include <windows.h>
+# ifndef VER_PLATFORM_WIN32_WINDOWS
+# define VER_PLATFORM_WIN32_WINDOWS 1
+# endif
#endif
#include "packet.h"
#include "status.h"