From: Guus Sliepen Date: Sat, 1 May 2010 13:37:11 +0000 (+0200) Subject: Define WINVER before including any other header file on Windows. X-Git-Tag: release-1.0.14~56 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=c94ede3b8708cdf105a3fecfc119a558e1583f27;p=tinc Define WINVER before including any other header file on Windows. --- diff --git a/have.h b/have.h index cf5c173a..923e76ab 100644 --- a/have.h +++ b/have.h @@ -21,6 +21,14 @@ #ifndef __TINC_HAVE_H__ #define __TINC_HAVE_H__ +#ifdef HAVE_MINGW +#ifdef WITH_WINDOWS2000 +#define WINVER Windows2000 +#else +#define WINVER WindowsXP +#endif +#endif + #include #include #include @@ -32,11 +40,6 @@ #include #ifdef HAVE_MINGW -#ifdef WITH_WINDOWS2000 -#define WINVER Windows2000 -#else -#define WINVER WindowsXP -#endif #include #include #include