Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am5
-rw-r--r--previewer/ev-previewer.c4
-rw-r--r--shell/main.c4
-rw-r--r--thumbnailer/evince-thumbnailer.c4
4 files changed, 14 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 7880c3a..4647ca4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,10 @@
ACLOCAL_AMFLAGS = -I m4
+# Set the minimum required Windows version to Windows 2000 (0x0500).
+if PLATFORM_WIN32
+AM_CPPFLAGS = -D_WIN32_WINNT=0x0500
+endif
+
SUBDIRS = \
cut-n-paste \
data \
diff --git a/previewer/ev-previewer.c b/previewer/ev-previewer.c
index 7a83eee..d8c1643 100644
--- a/previewer/ev-previewer.c
+++ b/previewer/ev-previewer.c
@@ -33,7 +33,9 @@
#endif
#include <io.h>
#include <conio.h>
-#define _WIN32_WINNT 0x0500
+#if !(_WIN32_WINNT >= 0x0500)
+#error "_WIN32_WINNT must be defined >= 0x0500"
+#endif
#include <windows.h>
#endif
diff --git a/shell/main.c b/shell/main.c
index 23872ed..e906ac6 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -46,7 +46,9 @@
#endif
#include <io.h>
#include <conio.h>
-#define _WIN32_WINNT 0x0500
+#if !(_WIN32_WINNT >= 0x0500)
+#error "_WIN32_WINNT must be defined >= 0x0500"
+#endif
#include <windows.h>
#endif
diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c
index 6ec0f6c..13c6db6 100644
--- a/thumbnailer/evince-thumbnailer.c
+++ b/thumbnailer/evince-thumbnailer.c
@@ -31,7 +31,9 @@
#endif
#include <io.h>
#include <conio.h>
-#define _WIN32_WINNT 0x0500
+#if !(_WIN32_WINNT >= 0x0500)
+#error "_WIN32_WINNT must be defined >= 0x0500"
+#endif
#include <windows.h>
#endif