mescc: Mes C Library: abort: Avoid __raise for TinyCC.
* lib/stdlib/abort.c: Use "raise" instead of __raise.
This commit is contained in:
parent
b6cadb876f
commit
6a9e9838f0
|
@ -239,6 +239,7 @@ typedef struct ucontext
|
|||
#endif // !__i386__
|
||||
|
||||
int kill (pid_t pid, int signum);
|
||||
int raise (int);
|
||||
int sigaction (int signum, struct sigaction const *act, struct sigaction *oldact);
|
||||
int sigaddset (sigset_t * set, int signum);
|
||||
#if __MESC__
|
||||
|
|
|
@ -20,12 +20,10 @@
|
|||
|
||||
#include <signal.h>
|
||||
|
||||
int __raise(int);
|
||||
|
||||
void
|
||||
abort (void)
|
||||
{
|
||||
if (__raise(SIGABRT) < 0) { /* could not raise SIGABRT */
|
||||
if (raise (SIGABRT) < 0) { /* could not raise SIGABRT */
|
||||
/* Fail in any way possible */
|
||||
unsigned char* x = (unsigned char*) 0;
|
||||
*x = 2;
|
||||
|
|
Loading…
Reference in a new issue