From 089d7212e779c4e27f5bc9eaeda3a6e6eee0f97f Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Sat, 4 Apr 2020 15:37:38 +0300 Subject: [PATCH] mdbx: fix mdbx_build_info for undefined flags case. 1 of 2 for https://github.com/erthink/libmdbx/issues/88 Change-Id: I079b329abe8f20793dc78c90ea55f874693dde43 --- src/elements/core.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/elements/core.c b/src/elements/core.c index 05a87d86..ac3b0d74 100644 --- a/src/elements/core.c +++ b/src/elements/core.c @@ -18267,12 +18267,16 @@ __dll_export #endif #endif /* MDBX_BUILD_COMPILER */ , -#ifdef MDBX_BUILD_FLAGS - MDBX_BUILD_FLAGS -#endif /* MDBX_BUILD_FLAGS */ #ifdef MDBX_BUILD_FLAGS_CONFIG MDBX_BUILD_FLAGS_CONFIG #endif /* MDBX_BUILD_FLAGS_CONFIG */ +#ifdef MDBX_BUILD_FLAGS + MDBX_BUILD_FLAGS +#endif /* MDBX_BUILD_FLAGS */ +#if !(defined(MDBX_BUILD_FLAGS_CONFIG) || defined(MDBX_BUILD_FLAGS)) + "undefined (please use correct build script)" +#warning "Build flags undefined. Please use correct build script" +#endif }; #ifdef __SANITIZE_ADDRESS__