From 3cd9a23e80d914c16e74b1c34a397e665812591a Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Thu, 15 Jul 2021 13:14:04 +0200 Subject: [PATCH] [PellesC] missing '_tcsnccmp' PellesC compiler does not have this macro in it's `` --- lib/vtls/schannel.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c index c91f43b23d..fa6f84fa5c 100644 --- a/lib/vtls/schannel.c +++ b/lib/vtls/schannel.c @@ -143,6 +143,16 @@ #define BACKEND connssl->backend +/* PellesC v10 does not have this in it's + */ +#ifndef _tcsnccmp +# ifdef UNICODE +# define _tcsnccmp wcsncmp +# else +# define _tcsnccmp strncmp +# endif +#endif + static Curl_recv schannel_recv; static Curl_send schannel_send;