aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c3
1 files changed, 2 insertions, 1 deletions
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. */
48#define max(a, b) ((a) > (b) ? (a) : (b)) 48#define max(a, b) ((a) > (b) ? (a) : (b))
49#define min(a, b) ((a) < (b) ? (a) : (b)) 49#define min(a, b) ((a) < (b) ? (a) : (b))
50 50
51#ifndef PENDING_OUTPUT_COUNT
52/* Get number of chars of output now in the buffer of a stdio stream. 51/* Get number of chars of output now in the buffer of a stdio stream.
53 This ought to be built in in stdio, but it isn't. 52 This ought to be built in in stdio, but it isn't.
54 Some s- files override this because their stdio internals differ. */ 53 Some s- files override this because their stdio internals differ. */
55#ifdef __GNU_LIBRARY__ 54#ifdef __GNU_LIBRARY__
55#undef PENDING_OUTPUT_COUNT
56#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer) 56#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)
57#else 57#else
58#ifndef PENDING_OUTPUT_COUNT
58#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base) 59#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)
59#endif 60#endif
60#endif 61#endif