From 9e435a09b62c4845052e46122911fe7c2f26d877 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Tue, 29 Dec 2009 12:08:40 +0100 Subject: [PATCH] [windows] Properly define the _WIN32_WINNT version --- Makefile.am | 5 +++++ previewer/ev-previewer.c | 4 +++- shell/main.c | 4 +++- thumbnailer/evince-thumbnailer.c | 4 +++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 7880c3a8..4647ca4f 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 7a83eee0..d8c1643a 100644 --- a/previewer/ev-previewer.c +++ b/previewer/ev-previewer.c @@ -33,7 +33,9 @@ #endif #include #include -#define _WIN32_WINNT 0x0500 +#if !(_WIN32_WINNT >= 0x0500) +#error "_WIN32_WINNT must be defined >= 0x0500" +#endif #include #endif diff --git a/shell/main.c b/shell/main.c index 23872ed0..e906ac6d 100644 --- a/shell/main.c +++ b/shell/main.c @@ -46,7 +46,9 @@ #endif #include #include -#define _WIN32_WINNT 0x0500 +#if !(_WIN32_WINNT >= 0x0500) +#error "_WIN32_WINNT must be defined >= 0x0500" +#endif #include #endif diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c index 6ec0f6c4..13c6db6d 100644 --- a/thumbnailer/evince-thumbnailer.c +++ b/thumbnailer/evince-thumbnailer.c @@ -31,7 +31,9 @@ #endif #include #include -#define _WIN32_WINNT 0x0500 +#if !(_WIN32_WINNT >= 0x0500) +#error "_WIN32_WINNT must be defined >= 0x0500" +#endif #include #endif -- 2.43.5