From bd0cb6417f9e37d7a5d494714e2144626dae4f0a Mon Sep 17 00:00:00 2001 From: Yurun Date: Mon, 17 Jan 2022 10:04:10 +0800 Subject: [PATCH] Fix --- src/inc/taoserror.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/inc/taoserror.h b/src/inc/taoserror.h index c4e328e558..6f49eb28a8 100644 --- a/src/inc/taoserror.h +++ b/src/inc/taoserror.h @@ -29,6 +29,12 @@ extern "C" { #define TAOS_SUCCEEDED(err) ((err) >= 0) #define TAOS_FAILED(err) ((err) < 0) +#ifdef _TD_GO_DLL_ + #define DLL_EXPORT __declspec(dllexport) +#else + #define DLL_EXPORT +#endif + DLL_EXPORT const char* tstrerror(int32_t err); DLL_EXPORT int32_t* taosGetErrno(); -- GitLab