未验证 提交 3db52689 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #2378 from taosdata/hotfix/test

[TD-92]
...@@ -58,6 +58,7 @@ uint32_t taosRand(void) ...@@ -58,6 +58,7 @@ uint32_t taosRand(void)
#endif #endif
size_t twcslen(const wchar_t *wcs) { size_t twcslen(const wchar_t *wcs) {
#ifdef WINDOWS
int *wstr = (int *)wcs; int *wstr = (int *)wcs;
if (NULL == wstr) { if (NULL == wstr) {
return 0; return 0;
...@@ -72,6 +73,9 @@ size_t twcslen(const wchar_t *wcs) { ...@@ -72,6 +73,9 @@ size_t twcslen(const wchar_t *wcs) {
} }
return n; return n;
#else
return wcslen(wcs);
#endif
} }
int32_t strdequote(char *z) { int32_t strdequote(char *z) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册