From a9464dab7cb7dab9854422a893f4afa3b516aae6 Mon Sep 17 00:00:00 2001 From: Hui Li Date: Sat, 20 Jun 2020 11:33:05 +0800 Subject: [PATCH] [TD-92] --- src/util/src/tutil.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/src/tutil.c b/src/util/src/tutil.c index f8fca7392c..aa5bfe322a 100644 --- a/src/util/src/tutil.c +++ b/src/util/src/tutil.c @@ -58,6 +58,7 @@ uint32_t taosRand(void) #endif size_t twcslen(const wchar_t *wcs) { +#ifdef WINDOWS int *wstr = (int *)wcs; if (NULL == wstr) { return 0; @@ -72,6 +73,9 @@ size_t twcslen(const wchar_t *wcs) { } return n; +#else + return wcslen(wcs); +#endif } int32_t strdequote(char *z) { -- GitLab