mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-28 09:40:09 +08:00
Remove __assert()
This function is provided by Newlib since 2000. Update #3409.
This commit is contained in:
@@ -72,7 +72,6 @@ AC_CHECK_FUNCS([creat \
|
||||
telldir \
|
||||
usleep],,
|
||||
[RTEMS_TOOL_CHAIN_ERROR])
|
||||
AC_CHECK_FUNCS([__assert])
|
||||
AC_CHECK_FUNCS([execl execlp execle execv execvp execve])
|
||||
AC_CHECK_FUNCS([regcomp regexec regerror regfree])
|
||||
|
||||
|
||||
@@ -52,18 +52,3 @@ void __assert_func(
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_ASSERT, (rtems_fatal_code) &assert_context );
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(RTEMS_NEWLIB) && !defined(HAVE___ASSERT)
|
||||
|
||||
/**
|
||||
* small RTEMS Specific Implementation
|
||||
*/
|
||||
void __assert(
|
||||
const char *file,
|
||||
int line,
|
||||
const char *failedexpr
|
||||
)
|
||||
{
|
||||
__assert_func (file, line, NULL, failedexpr);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user