aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoland McGrath1994-05-10 22:39:29 +0000
committerRoland McGrath1994-05-10 22:39:29 +0000
commitcb5558ff2dbe08de0b1d80b35a3531f71e9b7879 (patch)
tree5a6a8983c48a6c879a95be8daf0fff2e491b30a9 /src
parenta6ee0a2f86c21d52329f71d1facd11ba764bb1e8 (diff)
downloademacs-cb5558ff2dbe08de0b1d80b35a3531f71e9b7879.tar.gz
emacs-cb5558ff2dbe08de0b1d80b35a3531f71e9b7879.zip
[__GNU_LIBRARY__]: Redefine PENDING_OUTPUT_COUNT even if already defined.
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