]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Set _WIN32_WINNT to 0x600, at least with some MinGW versions ncrypt.h checks this...
authorTim Kosse <tim.kosse@filezilla-project.org>
Sat, 18 Apr 2015 09:38:55 +0000 (11:38 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 19 Apr 2015 07:07:11 +0000 (09:07 +0200)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lib/system-keys-win.c

index 992ec6d878b7d34190b546917391263b6ec6631e..6eb6446817819d25e4a5fadbc25a3719cbaa631d 100644 (file)
  *
  */
 
+// 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 <gnutls_int.h>
 #include <gnutls_errors.h>
 #include <gnutls/gnutls.h>