summaryrefslogtreecommitdiff
path: root/libs/libmdbx/src/config.h
diff options
context:
space:
mode:
authorLeonid Yuriev <leo@yuriev.ru>2020-10-08 02:02:18 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-10-09 16:50:37 +0300
commita519d4617ed83a2167a693ae87934e56889fef05 (patch)
tree85c3aea76fe15268fc0891cf18c328913c6d4347 /libs/libmdbx/src/config.h
parentbc58e7ec8ef67c37b6d302eaa2e76deedec03106 (diff)
libmdbx: switch to original amalgamated source code (v0.9.1.18)
Amalgamated source code is the recommended form for embedding libmdbx in non-CMake build systems. This amalgamated version contains a minimum of files, is fully ready for use, and make impossible a number of errors. To upgrade or switch to a different version, just unpack to the `src` subdirectory a corresponding `libmdbx-amalgamated-X_Y_Z.zip` at the https://github.com/erthink/libmdbx/releases. For instance, the https://github.com/erthink/libmdbx/releases/download/v0.9.2/libmdbx-amalgamated-0_9_2.zip for the next release. -- Minimal changes have been made to the build configuration: 1. For use the standard `DllMain()` entry of libmdbx: - added the `MDBX_BUILD_SHARED_LIBRARY=1` option; - removed the `MDBX_CONFIG_MANUAL_TLS_CALLBACK` option; - deleted the `miranda.c` file containing only `DllMain()` with the `mdbx_dll_handle()` call, now this is done by the library itself. 2. Removed refs to extra files (that missing in the amalgamated source code): - for building `libmdbx.dll` only the `mdbx.h` and `mdbx.c` are used, but not `mdbx.c++` for a C++ API; - for building the `mdbx_chk`, `mdbx_load`, and `mdbx_dump` utilities only it own sources are used. -- Last libmdbx changes: - Fixed missing installation of `mdbx.h++`. - Fixed use of obsolete `__noreturn`. - Fixed use of `yield` instruction on ARM if unsupported. - Added pthread workaround for buggy toolchain/cmake/buildroot. - Fixed use of `pthread_yield()` for non-GLIBC. - Fixed use of `RegGetValueA()` on Windows 2000/XP. - Fixed use of `GetTickCount64()` on Windows 2000/XP. - Fixed opening DB on a network shares (in the exclusive mode). - Fixed copy&paste typos. - Fixed minor false-positive GCC warning.
Diffstat (limited to 'libs/libmdbx/src/config.h')
-rw-r--r--libs/libmdbx/src/config.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/libs/libmdbx/src/config.h b/libs/libmdbx/src/config.h
deleted file mode 100644
index 23fea98bd0..0000000000
--- a/libs/libmdbx/src/config.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/* This is CMake-template for libmdbx's config.h
- ******************************************************************************/
-
-/* *INDENT-OFF* */
-/* clang-format off */
-
-#define LTO_ENABLED
-/* #undef MDBX_USE_VALGRIND */
-/* #undef ENABLE_GPROF */
-/* #undef ENABLE_GCOV */
-/* #undef ENABLE_ASAN */
-/* #undef MDBX_FORCE_ASSERTIONS */
-
-/* Common */
-#define MDBX_HUGE_TRANSACTIONS 0
-#define MDBX_TXN_CHECKOWNER 1
-#define MDBX_TXN_CHECKPID_AUTO
-#ifndef MDBX_TXN_CHECKPID_AUTO
-#define MDBX_TXN_CHECKPID 0
-#endif
-#define MDBX_LOCKING_AUTO
-#ifndef MDBX_LOCKING_AUTO
-/* #undef MDBX_LOCKING */
-#endif
-#define MDBX_TRUST_RTC_AUTO
-#ifndef MDBX_TRUST_RTC_AUTO
-#define MDBX_TRUST_RTC 0
-#endif
-
-/* Windows */
-#define MDBX_CONFIG_MANUAL_TLS_CALLBACK 1
-#define MDBX_AVOID_CRT 0
-
-/* MacOS & iOS */
-#define MDBX_OSX_SPEED_INSTEADOF_DURABILITY 0
-
-/* POSIX */
-#define MDBX_DISABLE_GNU_SOURCE 0
-/* #undef MDBX_USE_OFDLOCKS_AUTO */
-#ifndef MDBX_USE_OFDLOCKS_AUTO
-#define MDBX_USE_OFDLOCKS 0
-#endif
-
-/* Build Info */
-#define MDBX_BUILD_TIMESTAMP "2020-06-14T10:50:19Z"
-#define MDBX_BUILD_TARGET "x86_64-Windows"
-/* #undef MDBX_BUILD_TYPE */
-#define MDBX_BUILD_COMPILER "MSVC-19.26.28806.0"
-#define MDBX_BUILD_FLAGS "/DWIN32 /D_WINDOWS /W3 /EHsc /Gy /W4 /utf-8 /WX /GL MDBX_BUILD_SHARED_LIBRARY=0"
-#define MDBX_BUILD_SOURCERY d9a19ecb1e6bd3a67910c162b2e9c2dc476d665c134d041af742fa0196b19a3e_v0_8_1_1_g0c5496d
-
-/* *INDENT-ON* */
-/* clang-format on */