From cb5558ff2dbe08de0b1d80b35a3531f71e9b7879 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 10 May 1994 22:39:29 +0000 Subject: [PATCH] [__GNU_LIBRARY__]: Redefine PENDING_OUTPUT_COUNT even if already defined. --- src/dispnew.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dispnew.c b/src/dispnew.c index d90562bab54..439b0adbb33 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -48,13 +48,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) -#ifndef PENDING_OUTPUT_COUNT /* Get number of chars of output now in the buffer of a stdio stream. This ought to be built in in stdio, but it isn't. Some s- files override this because their stdio internals differ. */ #ifdef __GNU_LIBRARY__ +#undef PENDING_OUTPUT_COUNT #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer) #else +#ifndef PENDING_OUTPUT_COUNT #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base) #endif #endif -- 2.39.5