commit
3db526894b
|
@ -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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
|
#else
|
||||||
|
return wcslen(wcs);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t strdequote(char *z) {
|
int32_t strdequote(char *z) {
|
||||||
|
|
Loading…
Reference in New Issue