[SCHANNEL]
authorJérôme Gardou <jerome.gardou@reactos.org>
Mon, 1 Sep 2014 09:33:28 +0000 (09:33 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Mon, 1 Sep 2014 09:33:28 +0000 (09:33 +0000)
 - try fixing compilation with VS>=2010

svn path=/trunk/; revision=64019

reactos/dll/win32/schannel/schannel_gnutls.c

index be739a2..c6911af 100644 (file)
 #if defined(SONAME_LIBGNUTLS) && !defined(HAVE_SECURITY_SECURITY_H)
 
 static void *libgnutls_handle;
 #if defined(SONAME_LIBGNUTLS) && !defined(HAVE_SECURITY_SECURITY_H)
 
 static void *libgnutls_handle;
+#if (_MSC_VER >= 1600)
+#define MAKE_FUNCPTR(f) static decltype(f) p##f
+#else
 #define MAKE_FUNCPTR(f) static typeof(f) * p##f
 #define MAKE_FUNCPTR(f) static typeof(f) * p##f
+#endif
 MAKE_FUNCPTR(gnutls_alert_get);
 MAKE_FUNCPTR(gnutls_alert_get_name);
 MAKE_FUNCPTR(gnutls_certificate_allocate_credentials);
 MAKE_FUNCPTR(gnutls_alert_get);
 MAKE_FUNCPTR(gnutls_alert_get_name);
 MAKE_FUNCPTR(gnutls_certificate_allocate_credentials);