# HG changeset patch # User Roland McGrath # Date 768609569 0 # Node ID a9cb818e53162456e4a0e7b34f74cb921e54b456 # Parent 27fdaecd7cb18855690d4155fe9d9b4da3a9c57f [__GNU_LIBRARY__]: Redefine PENDING_OUTPUT_COUNT even if already defined. diff -r 27fdaecd7cb1 -r a9cb818e5316 src/dispnew.c --- a/src/dispnew.c Tue May 10 22:10:16 1994 +0000 +++ b/src/dispnew.c Tue May 10 22:39:29 1994 +0000 @@ -48,13 +48,14 @@ #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