fix:compile error in windows

This commit is contained in:
yihaoDeng 2024-12-09 18:00:30 +08:00
parent 0a7d8f3a69
commit acf6e53894
2 changed files with 4 additions and 1 deletions

View File

@ -976,8 +976,9 @@ void taos_init_imp(void) {
tscError("failed to init conv"); tscError("failed to init conv");
return; return;
} }
#ifndef WINDOWS
ENV_ERR_RET(tzInit(), "failed to init timezone"); ENV_ERR_RET(tzInit(), "failed to init timezone");
#endif
ENV_ERR_RET(monitorInit(), "failed to init monitor"); ENV_ERR_RET(monitorInit(), "failed to init monitor");
ENV_ERR_RET(rpcInit(), "failed to init rpc"); ENV_ERR_RET(rpcInit(), "failed to init rpc");

View File

@ -237,7 +237,9 @@ void taos_cleanup(void) {
tscWarn("failed to cleanup task queue"); tscWarn("failed to cleanup task queue");
} }
#ifndef WINDOWS
tzCleanup(); tzCleanup();
#endif
tmqMgmtClose(); tmqMgmtClose();
int32_t id = clientReqRefPool; int32_t id = clientReqRefPool;