X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2F_PDCLIB_fillbuffer.c;h=70df158e32fa20e18d1363736674285547e99718;hb=0a419d48138f1411d6e3e50a367b9ece5a2cf893;hp=dfdfe262510d858043e23bfb3a30505271bbb2f0;hpb=702e9008178bdb5c1b123b963868c946537fb7f5;p=pdclib 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,