From: Roland McGrath Date: Tue, 10 May 1994 22:39:29 +0000 (+0000) Subject: [__GNU_LIBRARY__]: Redefine PENDING_OUTPUT_COUNT even if already defined. X-Git-Tag: emacs-19.34~8410 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/cb5558ff2dbe08de0b1d80b35a3531f71e9b7879?hp=a6ee0a2f86c21d52329f71d1facd11ba764bb1e8 [__GNU_LIBRARY__]: Redefine PENDING_OUTPUT_COUNT even if already defined. --- diff --git a/src/dispnew.c b/src/dispnew.c index d90562bab5..439b0adbb3 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