2019-09-09 13:40:24 +03:00
|
|
|
/* This is CMake-template for libmdbx's version.c
|
|
|
|
******************************************************************************/
|
2017-05-24 01:07:15 +03:00
|
|
|
|
2019-09-05 11:57:52 +03:00
|
|
|
#include "internals.h"
|
2017-05-24 01:07:15 +03:00
|
|
|
|
2019-08-31 17:13:02 +03:00
|
|
|
#if MDBX_VERSION_MAJOR != ${MDBX_VERSION_MAJOR} || \
|
|
|
|
MDBX_VERSION_MINOR != ${MDBX_VERSION_MINOR}
|
|
|
|
#error "API version mismatch! Had `git fetch --tags` done?"
|
|
|
|
#endif
|
2017-05-24 01:07:15 +03:00
|
|
|
|
2021-07-25 15:11:05 +03:00
|
|
|
static const char sourcery[] = MDBX_STRINGIFY(MDBX_BUILD_SOURCERY);
|
2017-05-24 01:07:15 +03:00
|
|
|
|
2019-09-05 11:57:52 +03:00
|
|
|
__dll_export
|
|
|
|
#ifdef __attribute_used__
|
|
|
|
__attribute_used__
|
|
|
|
#elif defined(__GNUC__) || __has_attribute(__used__)
|
|
|
|
__attribute__((__used__))
|
2019-09-03 19:13:26 +03:00
|
|
|
#endif
|
2019-09-05 11:57:52 +03:00
|
|
|
#ifdef __attribute_externally_visible__
|
|
|
|
__attribute_externally_visible__
|
|
|
|
#elif (defined(__GNUC__) && !defined(__clang__)) || \
|
|
|
|
__has_attribute(__externally_visible__)
|
|
|
|
__attribute__((__externally_visible__))
|
|
|
|
#endif
|
2020-07-21 01:24:29 +03:00
|
|
|
const struct MDBX_version_info mdbx_version = {
|
2019-09-05 11:57:52 +03:00
|
|
|
${MDBX_VERSION_MAJOR},
|
|
|
|
${MDBX_VERSION_MINOR},
|
|
|
|
${MDBX_VERSION_RELEASE},
|
|
|
|
${MDBX_VERSION_REVISION},
|
|
|
|
{"@MDBX_GIT_TIMESTAMP@", "@MDBX_GIT_TREE@", "@MDBX_GIT_COMMIT@",
|
|
|
|
"@MDBX_GIT_DESCRIBE@"},
|
|
|
|
sourcery};
|
|
|
|
|
|
|
|
__dll_export
|
|
|
|
#ifdef __attribute_used__
|
|
|
|
__attribute_used__
|
|
|
|
#elif defined(__GNUC__) || __has_attribute(__used__)
|
|
|
|
__attribute__((__used__))
|
|
|
|
#endif
|
|
|
|
#ifdef __attribute_externally_visible__
|
|
|
|
__attribute_externally_visible__
|
|
|
|
#elif (defined(__GNUC__) && !defined(__clang__)) || \
|
|
|
|
__has_attribute(__externally_visible__)
|
|
|
|
__attribute__((__externally_visible__))
|
|
|
|
#endif
|
|
|
|
const char *const mdbx_sourcery_anchor = sourcery;
|