diff options
Diffstat (limited to 'lib/libc/stdio/clearerr.c')
| -rw-r--r-- | lib/libc/stdio/clearerr.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/stdio/clearerr.c b/lib/libc/stdio/clearerr.c index a49e5c2d..87d733ae 100644 --- a/lib/libc/stdio/clearerr.c +++ b/lib/libc/stdio/clearerr.c @@ -1,10 +1,13 @@ -#include <stdio.h> -#include <io.h> +#include "__stdio.h" // for _IO_EOF, _IO_ERR +#include "stddef.h" // for NULL + +#include <libc.h> // for __IMPL +#include <stdio.h> // for FILE, clearerr void clearerr(FILE *stream) { if (stream == NULL) return; - stream->flags &= ~(_IO_ERR | _IO_EOF); + __IMPL(stream)->flags &= ~(_IO_ERR | _IO_EOF); } |
