mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 12:59:21 +08:00
Fix rl78 libgloss port for c99/gcc-14
Needed a prototype for SYS_write and the prototype for write was incorrect (returns an int, not a char *).
This commit is contained in:
parent
f7d5bd9bbf
commit
a1a21442bc
@ -57,6 +57,7 @@ typedef unsigned int UHI __attribute__((mode(HI)));
|
|||||||
|
|
||||||
static int initted = 0;
|
static int initted = 0;
|
||||||
|
|
||||||
|
int _SYS_write (int, char *, int);
|
||||||
static void
|
static void
|
||||||
init_uart0 ()
|
init_uart0 ()
|
||||||
{
|
{
|
||||||
@ -108,4 +109,4 @@ _write(int fd, char *ptr, int len)
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
char * write (int) __attribute__((weak, alias ("_write")));
|
int write (int, char *, int) __attribute__((weak, alias ("_write")));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user