Rename __assert to __fish_assert

FreeBSD and possibly other platforms define __assert in their C
libraries.

Fixes #4133
This commit is contained in:
Alan Somers
2017-06-16 22:50:08 -06:00
committed by Kurtis Rader
parent e44934cf87
commit 652faa1a13
2 changed files with 7 additions and 9 deletions

View File

@@ -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));