4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-23 15:40:14 +08:00
Sebastian Huber bd95aa4d33 newlib: Remove superfluous CHECK_STD_INIT() macro
This macro is unused or expands to nothing.
2022-04-01 18:17:59 +02:00

29 lines
394 B
C

#include <stdio.h>
#include <errno.h>
#include "c99ppe.h"
#ifndef _REENT_ONLY
typedef struct
{
const char* str;
unsigned int pad0[ 3 ];
int arg_errno;
unsigned int pad1[ 3 ];
} c99_perror_t;
void
perror (const char *s)
{
c99_perror_t arg;
arg.str = s;
arg.arg_errno = errno;
__send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PERROR, &arg);
return;
}
#endif /* ! _REENT_ONLY */