summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-12-11 16:14:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-12-11 16:14:45 +0300
commit9348a6b335104270138109e3d483c6f148d53a83 (patch)
tree10824b2ebb2a4ef974312e7fa8fddfc2ebcf7b05 /libs
parent7f3f779d66c013ae106d005c97c7a4861d660235 (diff)
compilation fix
Diffstat (limited to 'libs')
-rw-r--r--libs/libmdbx/src/.gitignore2
-rw-r--r--libs/libmdbx/src/src/elements/version.c46
2 files changed, 46 insertions, 2 deletions
diff --git a/libs/libmdbx/src/.gitignore b/libs/libmdbx/src/.gitignore
index 0496b62164..906233ac58 100644
--- a/libs/libmdbx/src/.gitignore
+++ b/libs/libmdbx/src/.gitignore
@@ -29,7 +29,5 @@ test/tmp.db-lck
tmp.db
tmp.db-lck
valgrind.*
-src/elements/version.c
-src/elements/config.h
dist/
*.tar*
diff --git a/libs/libmdbx/src/src/elements/version.c b/libs/libmdbx/src/src/elements/version.c
new file mode 100644
index 0000000000..741fe7b541
--- /dev/null
+++ b/libs/libmdbx/src/src/elements/version.c
@@ -0,0 +1,46 @@
+/* This is CMake-template for libmdbx's version.c
+ ******************************************************************************/
+
+#include "internals.h"
+
+#if MDBX_VERSION_MAJOR != 0 || \
+ MDBX_VERSION_MINOR != 4
+#error "API version mismatch! Had `git fetch --tags` done?"
+#endif
+
+static const char sourcery[] = STRINGIFY(MDBX_BUILD_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 mdbx_version_info mdbx_version = {
+ 0,
+ 4,
+ 0,
+ 1692,
+ {"2019-12-05T01:43:57+03:00", "456d64170249e6108e90da02648de8c7707e2ed0", "3dccbb25a7710d4eff5fb136182b7bb0abfc4914",
+ "v0.4.0-12-g3dccbb2"},
+ 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;