From 98f1ce311e6e46f7c8775da7f592f1043b0cc987 Mon Sep 17 00:00:00 2001 From: Yurun Date: Sun, 16 Jan 2022 15:36:37 +0800 Subject: [PATCH] Added DLL_EXPORT declaration for tstrerror(), taosGetErrno(), taos_data_type() --- src/inc/taos.h | 2 +- src/inc/taoserror.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inc/taos.h b/src/inc/taos.h index ea8e1d9dad..978121bdf6 100644 --- a/src/inc/taos.h +++ b/src/inc/taos.h @@ -110,7 +110,7 @@ DLL_EXPORT TAOS *taos_connect(const char *ip, const char *user, const char *pass DLL_EXPORT TAOS *taos_connect_auth(const char *ip, const char *user, const char *auth, const char *db, uint16_t port); DLL_EXPORT void taos_close(TAOS *taos); -const char *taos_data_type(int type); +DLL_EXPORT const char *taos_data_type(int type); typedef struct TAOS_BIND { int buffer_type; diff --git a/src/inc/taoserror.h b/src/inc/taoserror.h index 4419240397..c4e328e558 100644 --- a/src/inc/taoserror.h +++ b/src/inc/taoserror.h @@ -29,9 +29,9 @@ extern "C" { #define TAOS_SUCCEEDED(err) ((err) >= 0) #define TAOS_FAILED(err) ((err) < 0) -const char* tstrerror(int32_t err); +DLL_EXPORT const char* tstrerror(int32_t err); -int32_t* taosGetErrno(); +DLL_EXPORT int32_t* taosGetErrno(); #define terrno (*taosGetErrno()) #define TSDB_CODE_SUCCESS 0 -- GitLab