comparison src/dispnew.c @ 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 bead6db0bbf2
children e5a2552872bf
comparison
equal deleted inserted replaced
7442:27fdaecd7cb1 7443:a9cb818e5316
46 #endif /* HAVE_X_WINDOWS */ 46 #endif /* HAVE_X_WINDOWS */
47 47
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
61 62
62 /* Nonzero upon entry to redisplay means do not assume anything about 63 /* Nonzero upon entry to redisplay means do not assume anything about