mdbx: add __assert_fail() macro for Android.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-06-01 16:18:27 +03:00
parent 06b404499e
commit 501691a3c0

View File

@ -141,7 +141,13 @@ typedef struct _FILE_PROVIDER_EXTERNAL_INFO_V1 {
/*----------------------------------------------------------------------------*/
#if defined(__UCLIBC__)
#if defined(__ANDROID_API__)
__extern_C void __assert2(const char *file, int line, const char *function,
const char *msg) __noreturn;
#define __assert_fail(assertion, file, line, function) \
__assert2(file, line, function, assertion)
#elif defined(__UCLIBC__)
__extern_C void __assert(const char *, const char *, unsigned int, const char *)
#ifdef __THROW
__THROW