fix: global function is missing

添加了默认隐藏符号的编译参数后,全局函数也需要导出才行。否则可能出现ld错误

Log: 修复获取全局版本号未导出的问题
Change-Id: I4c5c41c8c513e2571e458a99c61c14ea11d35639
This commit is contained in:
ck 2021-04-19 14:16:49 +08:00
parent 397f6cc465
commit 5753a9d000
1 changed files with 2 additions and 2 deletions

View File

@ -68,6 +68,6 @@
#define DTK_VERSION DTK_VERSION_CHECK(DTK_VERSION_MAJOR, DTK_VERSION_MINOR, DTK_VERSION_PATCH, DTK_VERSION_BUILD)
extern "C" {
int dtkVersion();
const char *dtkVersionString();
int LIBDTKCORESHARED_EXPORT dtkVersion();
const LIBDTKCORESHARED_EXPORT char *dtkVersionString();
}