From: Roland McGrath Date: Wed, 8 Dec 1993 23:49:24 +0000 (+0000) Subject: (PENDING_OUTPUT_COUNT) [__GNU_LIBRARY__]: Alternate definition for the GNU X-Git-Tag: emacs-19.34~10637 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e3271ae5f648e799be8b88351d29d78505c923ad;p=emacs.git (PENDING_OUTPUT_COUNT) [__GNU_LIBRARY__]: Alternate definition for the GNU C library. I changed this in version 18 in 1991, but the change never got propagated. --- diff --git a/src/dispnew.c b/src/dispnew.c index dac5c164356..5a9829f5f8d 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -52,8 +52,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* 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__ +#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer) +#else #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base) #endif +#endif /* Nonzero upon entry to redisplay means do not assume anything about current contents of actual terminal frame; clear and redraw it. */