From: Tim Kosse Date: Sat, 18 Apr 2015 09:38:55 +0000 (+0200) Subject: Set _WIN32_WINNT to 0x600, at least with some MinGW versions ncrypt.h checks this... X-Git-Tag: gnutls_3_4_1~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5bf74653b5a480fda8d6c05fa07644b7b4b77fa3;p=thirdparty%2Fgnutls.git Set _WIN32_WINNT to 0x600, at least with some MinGW versions ncrypt.h checks this define to be at least 0x600. Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/lib/system-keys-win.c b/lib/system-keys-win.c index 992ec6d878..6eb6446817 100644 --- a/lib/system-keys-win.c +++ b/lib/system-keys-win.c @@ -18,6 +18,14 @@ * */ +// Before including any Windows header we need to set _WIN32_WINNT to Vista +// (or higher) so that the NCRYPT stuff can be used. +#if _WIN32_WINNT < 0x600 +#undef _WIN32_WINNT +#define _WIN32_WINNT 0x600 +#endif + + #include #include #include