]> sourceware.org Git - newlib-cygwin.git/commitdiff
Fix rl78 libgloss port for c99/gcc-14
authorJeff Law <jeffreyalaw@gmail.com>
Sat, 23 Dec 2023 04:00:35 +0000 (21:00 -0700)
committerJeff Law <jeffreyalaw@gmail.com>
Sat, 23 Dec 2023 04:00:35 +0000 (21:00 -0700)
Needed a prototype for SYS_write and the prototype for write was incorrect
(returns an int, not a char *).

libgloss/rl78/write.c

index 849470c9470e0f99c5edffb9667722f42ed9dee9..4bc74ae3e945ec01fe7fe8c6ec99f290bdbb03c0 100644 (file)
@@ -57,6 +57,7 @@ typedef unsigned int UHI __attribute__((mode(HI)));
 
 static int initted = 0;
 
+int _SYS_write (int, char *, int);
 static void
 init_uart0 ()
 {
@@ -108,4 +109,4 @@ _write(int fd, char *ptr, int len)
   return rv;
 }
 
-char * write (int) __attribute__((weak, alias ("_write")));
+int write (int, char *, int) __attribute__((weak, alias ("_write")));
This page took 0.031341 seconds and 5 git commands to generate.