修复笔误,会导致获取阻断方式失败

增加自动生成版本号
This commit is contained in:
liuxueli
2019-12-25 15:23:40 +08:00
parent fb1511e25c
commit 4ae73e796c
3 changed files with 23 additions and 13 deletions

View File

@@ -12,9 +12,29 @@
#include "tsg_send_log.h"
#include "tsg_send_log_internal.h"
#ifdef __cplusplus
extern "C"
{
#endif
#define GIT_VERSION_CATTER(v) __attribute__((__used__)) const char * GIT_VERSION_##v = NULL
#define GIT_VERSION_EXPEND(v) GIT_VERSION_CATTER(v)
/* VERSION TAG */
#ifdef GIT_VERSION
GIT_VERSION_EXPEND(GIT_VERSION);
#else
static __attribute__((__used__)) const char * GIT_VERSION_UNKNOWN = NULL;
#endif
#undef GIT_VERSION_CATTER
#undef GIT_VERSION_EXPEND
#ifdef __cplusplus
}
#endif
char TSG_MASTER_VERSION_20191220=0;
char TSG_MASTER_VERSION_20191224=0;
const char *tsg_conffile="tsgconf/main.conf";
g_tsg_para_t g_tsg_para;