提交 a9464dab 编写于 作者: H Hui Li

[TD-92]

上级 2287cd13
...@@ -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.
先完成此消息的编辑!
想要评论请 注册