mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-02 00:51:15 -03:00
Rename __assert to __fish_assert
FreeBSD and possibly other platforms define __assert in their C libraries. Fixes #4133
This commit is contained in:
committed by
Kurtis Rader
parent
e44934cf87
commit
652faa1a13
@@ -1986,7 +1986,7 @@ void redirect_tty_output() {
|
||||
}
|
||||
|
||||
/// Display a failed assertion message, dump a stack trace if possible, then die.
|
||||
[[noreturn]] void __assert(const char *msg, const char *file, size_t line, int error) {
|
||||
[[noreturn]] void __fish_assert(const char *msg, const char *file, size_t line, int error) {
|
||||
if (error) {
|
||||
debug(0, L"%s:%zu: failed assertion: %s: errno %d (%s)", file, line, msg, error,
|
||||
strerror(error));
|
||||
|
||||
Reference in New Issue
Block a user