fix(os): update windows compile error

This commit is contained in:
afwerar 2022-05-14 11:15:21 +08:00
parent 61729d6805
commit 2e3a64a569
1 changed files with 13 additions and 17 deletions

View File

@ -238,7 +238,6 @@ int32_t taosWcharToMb(char *pStr, TdWchar wchar) { return wctomb(pStr, wchar); }
int32_t taosWcharsToMbs(char *pStrs, TdWchar *pWchars, int32_t size) { return wcstombs(pStrs, pWchars, size); }
char *taosStrCaseStr(const char *str, const char *pattern) {
#ifdef WINDOWS
size_t i;
if (!*pattern)
@ -255,7 +254,4 @@ char *taosStrCaseStr(const char *str, const char *pattern) {
}
}
return NULL;
#else
return strcasestr(str, pattern);
#endif
}