diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-10-08 20:44:10 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-10-08 20:44:10 +0400 |
commit | a3a62ae7a58879c77fe7de79533ad1024d8d4856 (patch) | |
tree | ce3aa1c7a8b8bd51d14246c8f4f841514439e29c /newlib/libc | |
parent | b1da4d8277bc0d2cafb13a0d8c3760be7a2b3877 (diff) |
2009-10-08 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
* libc/stdlib/assert.c (_assert_func): Do not specify
__assert_func if HAVE_ASSERT_FUNC flag is set.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/stdlib/assert.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/assert.c b/newlib/libc/stdlib/assert.c index 2da329815..135bf1519 100644 --- a/newlib/libc/stdlib/assert.c +++ b/newlib/libc/stdlib/assert.c @@ -47,6 +47,7 @@ Supporting OS subroutines required (only if enabled): <<close>>, <<fstat>>, #include <stdlib.h> #include <stdio.h> +#ifndef HAVE_ASSERT_FUNC /* func can be NULL, in which case no function information is given. */ void _DEFUN (__assert_func, (file, line, func, failedexpr), @@ -62,6 +63,7 @@ _DEFUN (__assert_func, (file, line, func, failedexpr), abort(); /* NOTREACHED */ } +#endif /* HAVE_ASSERT_FUNC */ void _DEFUN (__assert, (file, line, failedexpr), |