X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2F_PDCLIB_fillbuffer.c;h=70df158e32fa20e18d1363736674285547e99718;hp=dfdfe262510d858043e23bfb3a30505271bbb2f0;hb=0e35e82c5e9a0804864839e8fc0e985b1ae41f07;hpb=4fe88a1c445105a96d08b808831d6fc7480a211d diff --git a/functions/stdio/_PDCLIB_fillbuffer.c b/functions/stdio/_PDCLIB_fillbuffer.c index dfdfe26..70df158 100644 --- a/functions/stdio/_PDCLIB_fillbuffer.c +++ b/functions/stdio/_PDCLIB_fillbuffer.c @@ -1,4 +1,4 @@ -/* _PDCLIB_fillbuffer( struct _PDCLIB_file_t * stream ) +/* _PDCLIB_fillbuffer( FILE * stream ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. @@ -8,8 +8,9 @@ #ifndef REGTEST #include <_PDCLIB_glue.h> +#include <_PDCLIB_io.h> -int _PDCLIB_fillbuffer( struct _PDCLIB_file_t * stream ) +int _PDCLIB_fillbuffer( FILE * stream ) { size_t bytesRead; bool ok = stream->ops->read( stream->handle, stream->buffer, stream->bufsize,