Add __fseterr for gnulib compatibility.
This commit is contained in:
parent
b2f1c72cc7
commit
472bba3db3
|
@ -1,6 +1,6 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|
||||||
Copyright(C) Jonas 'Sortie' Termansen 2012, 2014.
|
Copyright(C) Jonas 'Sortie' Termansen 2012, 2014, 2015.
|
||||||
|
|
||||||
This file is part of the Sortix C Library.
|
This file is part of the Sortix C Library.
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ int __freadable(FILE* fp);
|
||||||
int __fwritable(FILE* fp);
|
int __fwritable(FILE* fp);
|
||||||
void __fpurge(FILE* fp);
|
void __fpurge(FILE* fp);
|
||||||
size_t __fpending(FILE* fp);
|
size_t __fpending(FILE* fp);
|
||||||
|
void __fseterr(FILE* fp);
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|
||||||
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013.
|
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013, 2015.
|
||||||
|
|
||||||
This file is part of the Sortix C Library.
|
This file is part of the Sortix C Library.
|
||||||
|
|
||||||
|
@ -30,3 +30,9 @@ extern "C" void fseterr(FILE* fp)
|
||||||
fseterr_unlocked(fp);
|
fseterr_unlocked(fp);
|
||||||
funlockfile(fp);
|
funlockfile(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// &%#!ing gnulib compatibility.
|
||||||
|
extern "C" void __fseterr(FILE* fp)
|
||||||
|
{
|
||||||
|
fseterr(fp);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue