From a3a62ae7a58879c77fe7de79533ad1024d8d4856 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 8 Oct 2009 16:44:10 +0000 Subject: 2009-10-08 Jeff Johnston * 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. --- newlib/libc/stdlib/assert.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'newlib/libc/stdlib') 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): <>, <>, #include #include +#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), -- cgit v1.2.3