Add __fseterr for gnulib compatibility.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-02-04 19:17:46 +01:00
parent b2f1c72cc7
commit 472bba3db3
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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);
}