diff options
Diffstat (limited to 'libc/misc/assert/__assert.c')
-rw-r--r-- | libc/misc/assert/__assert.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libc/misc/assert/__assert.c b/libc/misc/assert/__assert.c index c55f0b6ae..4282812a5 100644 --- a/libc/misc/assert/__assert.c +++ b/libc/misc/assert/__assert.c @@ -33,17 +33,22 @@ #include <unistd.h> #include <bits/uClibc_uintmaxtostr.h> +libc_hidden_proto(fprintf) +libc_hidden_proto(abort) +libc_hidden_proto(stderr) + /* Get the prototype from assert.h as a double-check. */ #undef NDEBUG #include <assert.h> #undef assert +libc_hidden_proto(__assert) #define ASSERT_SHOW_PROGNAME 1 static int in_assert; /* bss inits to 0. */ -void __assert(const char *assertion, const char * filename, +void attribute_noreturn __assert(const char *assertion, const char * filename, int linenumber, register const char * function) { if (!in_assert) { @@ -64,3 +69,5 @@ void __assert(const char *assertion, const char * filename, } abort(); } + +libc_hidden_def(__assert) |