mirror of git://sourceware.org/git/glibc.git
libio: Add hidden prototype for ungetc
And make ungetc the primary symbol, with _IO_ungetc as an alias. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
c4ec8cab07
commit
771473a8c4
|
|
@ -212,6 +212,7 @@ libc_hidden_ldbl_proto (dprintf)
|
||||||
libc_hidden_ldbl_proto (fprintf)
|
libc_hidden_ldbl_proto (fprintf)
|
||||||
libc_hidden_ldbl_proto (vfprintf)
|
libc_hidden_ldbl_proto (vfprintf)
|
||||||
libc_hidden_ldbl_proto (sprintf)
|
libc_hidden_ldbl_proto (sprintf)
|
||||||
|
libc_hidden_proto (ungetc)
|
||||||
libc_hidden_proto (fwrite)
|
libc_hidden_proto (fwrite)
|
||||||
libc_hidden_proto (perror)
|
libc_hidden_proto (perror)
|
||||||
libc_hidden_proto (remove)
|
libc_hidden_proto (remove)
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
#include "libioP.h"
|
#include "libioP.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
_IO_ungetc (int c, FILE *fp)
|
ungetc (int c, FILE *fp)
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
CHECK_FILE (fp, EOF);
|
CHECK_FILE (fp, EOF);
|
||||||
|
|
@ -40,5 +40,5 @@ _IO_ungetc (int c, FILE *fp)
|
||||||
_IO_release_lock (fp);
|
_IO_release_lock (fp);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
libc_hidden_def (ungetc)
|
||||||
weak_alias (_IO_ungetc, ungetc)
|
strong_alias (ungetc, _IO_ungetc)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue