diff options
Diffstat (limited to 'newlib/libc/stdio/clearerr.c')
-rw-r--r-- | newlib/libc/stdio/clearerr.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/newlib/libc/stdio/clearerr.c b/newlib/libc/stdio/clearerr.c index 6a1b0af3c..e242ff5e1 100644 --- a/newlib/libc/stdio/clearerr.c +++ b/newlib/libc/stdio/clearerr.c @@ -52,14 +52,15 @@ ANSI C requires <<clearerr>>. No supporting OS subroutines are required. */ +#include <_ansi.h> #include <stdio.h> #undef clearerr _VOID -_DEFUN (clearerr, (fp), - FILE * fp) +_DEFUN(clearerr, (fp), + FILE * fp) { - _flockfile(fp); + _flockfile (fp); __sclearerr (fp); - _funlockfile(fp); + _funlockfile (fp); } |