From 35ef21d25668ceb5b8306d4207e35f1fca3ef02d Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Thu, 16 Nov 2000 09:26:14 +0000 Subject: [PATCH] c_io_stdio.h (streamsize): Make it a typedef for ptrdiff_t. * config/c_io_stdio.h (streamsize): Make it a typedef for ptrdiff_t. (wstreamsize): Likewise. From-SVN: r37496 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/config/c_io_stdio.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 66512b824ed..8d7f919d79b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2000-11-16 Mark Mitchell + * config/c_io_stdio.h (streamsize): Make it a typedef for + ptrdiff_t. + (wstreamsize): Likewise. + * config/c_io_stdio.h: Include libio.h. Wed Nov 15 18:39:34 2000 Mark P Mitchell diff --git a/libstdc++-v3/config/c_io_stdio.h b/libstdc++-v3/config/c_io_stdio.h index 8dcf71ada49..0d2d26b7cf8 100644 --- a/libstdc++-v3/config/c_io_stdio.h +++ b/libstdc++-v3/config/c_io_stdio.h @@ -45,10 +45,10 @@ namespace std { // from fpos.h typedef long streamoff; - typedef size_t streamsize; // Signed integral type + typedef ptrdiff_t streamsize; // Signed integral type #if _GLIBCPP_USE_WCHAR_T typedef long wstreamoff; - typedef size_t wstreamsize; + typedef ptrdiff_t wstreamsize; #endif typedef fpos_t __c_streampos; -- 2.30.2