未验证 提交 4e0469ea 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #9824 from Yurunsoft/dll-export

Added DLL_EXPORT declaration for tstrerror(), taosGetErrno(), taos_data_type()
......@@ -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;
......
......@@ -29,9 +29,15 @@ extern "C" {
#define TAOS_SUCCEEDED(err) ((err) >= 0)
#define TAOS_FAILED(err) ((err) < 0)
const char* tstrerror(int32_t err);
#ifdef _TD_GO_DLL_
#define DLL_EXPORT __declspec(dllexport)
#else
#define DLL_EXPORT
#endif
DLL_EXPORT const char* tstrerror(int32_t err);
int32_t* taosGetErrno();
DLL_EXPORT int32_t* taosGetErrno();
#define terrno (*taosGetErrno())
#define TSDB_CODE_SUCCESS 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册