* include/stdio.h (__mingw_fwrite): Change return value to

size_t.
	* mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
This commit is contained in:
Danny Smith 2005-03-24 05:58:52 +00:00
parent c6190209b3
commit bc47d398b2
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
* include/stdio.h (__mingw_fwrite): Change return value to
size_t.
* mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
2005-03-15 Hans Leidekker <hans@it.vu.nl>
* include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.

View File

@ -312,7 +312,7 @@ _CRTIMP void __cdecl rewind (FILE*);
*/
int __cdecl __mingw_fseek (FILE *, long, int);
int __cdecl __mingw_fwrite (const void*, size_t, size_t, FILE*);
size_t __cdecl __mingw_fwrite (const void*, size_t, size_t, FILE*);
#define fseek(fp, offset, whence) __mingw_fseek(fp, offset, whence)
#define fwrite(buffer, size, count, fp) __mingw_fwrite(buffer, size, count, fp)
#endif /* __USE_MINGW_FSEEK */

View File

@ -37,7 +37,7 @@ __mingw_fseeko64 (FILE *fp, off64_t offset, int whence)
return fseeko64 (fp, offset, whence);
}
int
size_t
__mingw_fwrite (const void *buffer, size_t size, size_t count, FILE *fp)
{
# undef fwrite