]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
[PellesC] missing '_tcsnccmp'
authorGisle Vanem <gisle.vanem@gmail.com>
Thu, 15 Jul 2021 11:14:04 +0000 (13:14 +0200)
committerGisle Vanem <gvanem@yahoo.no>
Fri, 16 Jul 2021 05:30:35 +0000 (07:30 +0200)
PellesC compiler does not have this macro in it's `<tchar.h>`

lib/vtls/schannel.c

index c91f43b23da812b5a4039fd157ce0b5a2c34a128..fa6f84fa5c1be1ac432768253e964f90a147a12f 100644 (file)
 
 #define BACKEND connssl->backend
 
+/* PellesC v10 does not have this in it's <tchar.h>
+ */
+#ifndef _tcsnccmp
+#  ifdef UNICODE
+#    define _tcsnccmp wcsncmp
+#  else
+#    define _tcsnccmp strncmp
+#  endif
+#endif
+
 static Curl_recv schannel_recv;
 static Curl_send schannel_send;