4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-23 07:27:21 +08:00
Pietro Monteiro 36e398b04e libc: sh: add missing prototypes and change functions from K&R to ANSI
The SuperH target doesn't build on GCC 14.1 because of missing
function prototypes or because some function declarations use the
deprecated K&R style.  This patch adds missing prototypes on the files
the functions are used and convert K&R declarations to ANSI-style.

Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
2024-06-28 11:25:51 +02:00

9 lines
122 B
C

extern int
_creat (const char *path, int mode);
int
creat (const char *path, int mode)
{
return _creat (path, mode);
}