changeset 7443:a9cb818e5316

[__GNU_LIBRARY__]: Redefine PENDING_OUTPUT_COUNT even if already defined.
author Roland McGrath <roland@gnu.org>
date Tue, 10 May 1994 22:39:29 +0000
parents 27fdaecd7cb1
children e5a2552872bf
files src/dispnew.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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