From: Gisle Vanem Date: Thu, 15 Jul 2021 11:14:04 +0000 (+0200) Subject: [PellesC] missing '_tcsnccmp' X-Git-Tag: curl-7_78_0~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cd9a23e80d914c16e74b1c34a397e665812591a;p=thirdparty%2Fcurl.git [PellesC] missing '_tcsnccmp' PellesC compiler does not have this macro in it's `` --- 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;