mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add __fseterr for gnulib compatibility.
This commit is contained in:
parent
b2f1c72cc7
commit
472bba3db3
2 changed files with 9 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
@ -38,6 +38,7 @@ int __freadable(FILE* fp);
|
|||
int __fwritable(FILE* fp);
|
||||
void __fpurge(FILE* fp);
|
||||
size_t __fpending(FILE* fp);
|
||||
void __fseterr(FILE* fp);
|
||||
|
||||
__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.
|
||||
|
||||
|
@ -30,3 +30,9 @@ extern "C" void fseterr(FILE* fp)
|
|||
fseterr_unlocked(fp);
|
||||
funlockfile(fp);
|
||||
}
|
||||
|
||||
// &%#!ing gnulib compatibility.
|
||||
extern "C" void __fseterr(FILE* fp)
|
||||
{
|
||||
fseterr(fp);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue