Author: jgardou
Date: Mon Sep 1 09:33:28 2014
New Revision: 64019
URL:
http://svn.reactos.org/svn/reactos?rev=64019&view=rev
Log:
[SCHANNEL]
- try fixing compilation with VS>=2010
Modified:
trunk/reactos/dll/win32/schannel/schannel_gnutls.c
Modified: trunk/reactos/dll/win32/schannel/schannel_gnutls.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/schannel/schanne…
==============================================================================
--- trunk/reactos/dll/win32/schannel/schannel_gnutls.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/schannel/schannel_gnutls.c [iso-8859-1] Mon Sep 1 09:33:28
2014
@@ -35,7 +35,11 @@
#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
+#endif
MAKE_FUNCPTR(gnutls_alert_get);
MAKE_FUNCPTR(gnutls_alert_get_name);
MAKE_FUNCPTR(gnutls_certificate_allocate_credentials);