diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-27 23:50:27 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-27 23:50:27 +0000 |
commit | e52a11db3dcc50f2dd72c3f5871afc1d432507de (patch) | |
tree | 9ecbf1b8ae5b77595de3393f4b8e37ecf4f074c2 /libc/misc/assert/__assert.c | |
parent | d032c07a7913c9aa932e35eb04a3cccdae8a9a1d (diff) | |
download | uClibc-alpine-e52a11db3dcc50f2dd72c3f5871afc1d432507de.tar.bz2 uClibc-alpine-e52a11db3dcc50f2dd72c3f5871afc1d432507de.tar.xz |
Merge from trunk.
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) |