From 2fc03e9524f85281bc30bfee5a059f04cf5e9554 Mon Sep 17 00:00:00 2001 From: 刘学利 Date: Sat, 10 Oct 2020 12:05:09 +0800 Subject: Develop export version --- src/HTTP_Analyze.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src') diff --git a/src/HTTP_Analyze.c b/src/HTTP_Analyze.c index 7bf6941..a4bd5bb 100644 --- a/src/HTTP_Analyze.c +++ b/src/HTTP_Analyze.c @@ -22,6 +22,28 @@ #include "MESA_handle_logger.h" #include "field_stat.h" +#define GIT_VERSION_CATTER(v) __attribute__((__used__)) const char * GIT_VERSION_##v = NULL +#define GIT_VERSION_EXPEND(v) GIT_VERSION_CATTER(v) + +#ifdef __cplusplus +extern "C" +{ +#endif + + /* 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 + + http_prog_runtime_parameter_t g_http_prog_para; int G_HTTP_H_VERSION_4_20191205 = 0; -- cgit v1.2.3