summaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorGisle Vanem <gisle.vanem@gmail.com>2021-07-15 13:14:04 +0200
committerGisle Vanem <gvanem@yahoo.no>2021-07-16 07:30:35 +0200
commit3cd9a23e80d914c16e74b1c34a397e665812591a (patch)
tree126b0f7dbef5ee396acd5eeeafcbf458ed2e40ef /lib/vtls
parent6c293cfcf02e83ca294466e87370c644a650748a (diff)
downloadcurl-3cd9a23e80d914c16e74b1c34a397e665812591a.tar.gz
[PellesC] missing '_tcsnccmp'
PellesC compiler does not have this macro in it's `<tchar.h>`
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/schannel.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index c91f43b23..fa6f84fa5 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 <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;