Import libio changes from egcs 1.1.2.

This commit is contained in:
tv 1999-04-06 16:22:32 +00:00
parent 5a74f4e7d4
commit bcfc4147c3
9 changed files with 21 additions and 13 deletions

View File

@ -23,4 +23,4 @@ USER_INCLUDES=PlotFile.h SFile.h builtinbuf.h editbuf.h fstream.h \
streambuf.h strfile.h strstream.h libio.h
# A bad kludge
MT_CFLAGS=-D_G_HAVE_MMAP
MT_CFLAGS=-D_G_HAVE_MMAP -D_G_STDIO_USES_LIBIO -D_G_HAVE_WEAK_SYMBOL

View File

@ -937,6 +937,8 @@ __io_defs io_defs__;
#ifdef weak_alias
weak_alias (_IO_cleanup, _cleanup)
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
void _cleanup () __attribute__ ((weak, alias ("_IO_cleanup")));
#endif
#ifdef text_set_element

View File

@ -55,8 +55,6 @@ _IO_fclose (fp)
#ifdef weak_alias
weak_alias (_IO_fclose, fclose)
#else
#ifdef __linux__
#pragma weak fclose = _IO_fclose
#endif
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
int fclose (_IO_FILE *) __attribute__ ((weak, alias("_IO_fclose")));
#endif

View File

@ -40,4 +40,6 @@ _IO_feof (fp)
#ifdef weak_alias
weak_alias (_IO_feof, feof)
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
int feof (_IO_FILE *) __attribute__ ((weak, alias("_IO_feof")));
#endif

View File

@ -40,4 +40,6 @@ _IO_ferror (fp)
#ifdef weak_alias
weak_alias (_IO_ferror, ferror)
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
int ferror (_IO_FILE *) __attribute__ ((weak, alias("_IO_ferror")));
#endif

View File

@ -45,4 +45,6 @@ _IO_getc (fp)
#ifdef weak_alias
weak_alias (_IO_getc, getc)
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
int getc (_IO_FILE *) __attribute__ ((weak, alias("_IO_getc")));
#endif

View File

@ -39,4 +39,6 @@ _IO_putc (c, fp)
#ifdef weak_alias
weak_alias (_IO_putc, putc)
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
int putc (int, _IO_FILE *) __attribute__ ((weak, alias("_IO_putc")));
#endif

View File

@ -54,8 +54,7 @@ _IO_vsprintf (string, format, args)
#ifdef weak_alias
weak_alias (_IO_vsprintf, vsprintf)
#else
#ifdef __linux__
#pragma weak vsprintf = _IO_vsprintf
#endif
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
int vsprintf (char *, const char *, _IO_va_list)
__attribute__ ((weak, alias("_IO_vsprintf")));
#endif

View File

@ -51,8 +51,9 @@ _IO_vsscanf (string, format, args)
#ifdef weak_alias
weak_alias (_IO_vsscanf, __vsscanf)
weak_alias (_IO_vsscanf, vsscanf)
#else
#ifdef __linux__
#pragma weak vsscanf = _IO_vsscanf
#endif
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
int __vsscanf (const char *, const char *, _IO_va_list)
__attribute__ ((weak, alias("_IO_vsscanf")));
int vsscanf (const char *, const char *, _IO_va_list)
__attribute__ ((weak, alias("_IO_vsscanf")));
#endif