mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:14:12 +08:00
mdbx: workaround for musl-libc __assert_fail() prototype bug.
This commit is contained in:
parent
9ffd17d58b
commit
7d383350e8
@ -153,8 +153,10 @@ typedef struct _FILE_PROVIDER_EXTERNAL_INFO_V1 {
|
|||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#if !defined(_MSC_VER) && \
|
||||||
/* Prototype should match libc runtime. ISO POSIX (2003) & LSB 3.1 */
|
/* workaround for avoid musl libc wrong prototype */ ( \
|
||||||
|
defined(__GLIBC__) || defined(__GNU_LIBRARY__))
|
||||||
|
/* Prototype should match libc runtime. ISO POSIX (2003) & LSB 1.x-3.x */
|
||||||
__nothrow __noreturn void __assert_fail(const char *assertion, const char *file,
|
__nothrow __noreturn void __assert_fail(const char *assertion, const char *file,
|
||||||
unsigned line, const char *function);
|
unsigned line, const char *function);
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user