mirror of
https://github.com/isar/libmdbx.git
synced 2025-04-02 03:02:58 +08:00
mdbx: добавление MDBX_VERSION_UNSTABLE
и маркировка master
-ветки для предотвращения ошибок сборки.
This commit is contained in:
parent
b308559dd9
commit
d8f46344b5
3
mdbx.h
3
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
|
||||
|
||||
|
@ -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__
|
||||
|
Loading…
x
Reference in New Issue
Block a user