From d8f46344b5a2aca3023fe84201ba83fa69bef76a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Mon, 31 Mar 2025 00:51:23 +0300 Subject: [PATCH] =?UTF-8?q?mdbx:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20`MDBX=5FVERSION=5FUNSTABLE`=20=D0=B8?= =?UTF-8?q?=20=D0=BC=D0=B0=D1=80=D0=BA=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B0?= =?UTF-8?q?=20`master`-=D0=B2=D0=B5=D1=82=D0=BA=D0=B8=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B5=D0=B4=D0=BE=D1=82=D0=B2=D1=80=D0=B0=D1=89?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= =?UTF-8?q?=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mdbx.h | 3 ++- src/version.c.in | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mdbx.h b/mdbx.h index c43c0c46..bbfe68c5 100644 --- a/mdbx.h +++ b/mdbx.h @@ -581,7 +581,8 @@ typedef mode_t mdbx_mode_t; extern "C" { #endif -/* MDBX version 0.14.x */ +/* MDBX version 0.14.x, but it is unstable/under-development yet. */ +#define MDBX_VERSION_UNSTABLE #define MDBX_VERSION_MAJOR 0 #define MDBX_VERSION_MINOR 14 diff --git a/src/version.c.in b/src/version.c.in index 5c585eae..fdbfcb28 100644 --- a/src/version.c.in +++ b/src/version.c.in @@ -3,11 +3,16 @@ #include "internals.h" -#if MDBX_VERSION_MAJOR != ${MDBX_VERSION_MAJOR} || MDBX_VERSION_MINOR != ${MDBX_VERSION_MINOR} +#if !defined(MDBX_VERSION_UNSTABLE) && \ + (MDBX_VERSION_MAJOR != ${MDBX_VERSION_MAJOR} || MDBX_VERSION_MINOR != ${MDBX_VERSION_MINOR}) #error "API version mismatch! Had `git fetch --tags` done?" #endif -static const char sourcery[] = MDBX_STRINGIFY(MDBX_BUILD_SOURCERY); +static const char sourcery[] = +#ifdef MDBX_VERSION_UNSTABLE + "UNSTABLE@" +#endif + MDBX_STRINGIFY(MDBX_BUILD_SOURCERY); __dll_export #ifdef __attribute_used__