/* * Copyright 2015-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only as authorized by the OpenLDAP * Public License. * * A copy of this license is available in the file LICENSE in the * top-level directory of the distribution or, alternatively, at * . */ #include "internals.h" #if defined(_MSC_VER) && defined(MDBX_BUILD_TARGET) #pragma message("Configuration-depended MDBX_BUILD_TARGET: " MDBX_BUILD_TARGET) #endif #if defined(_MSC_VER) && defined(MDBX_BUILD_FLAGS) #pragma message("Configuration-depended MDBX_BUILD_FLAGS: " MDBX_BUILD_FLAGS) #endif #if 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[] = 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 = { ${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;