Mercurial > emacs
changeset 7558:8497bcb9fb8e
(PENDING_OUTPUT_COUNT): If __GNU_LIBRARY__,
use GNU_LIBRARY_PENDING_OUTPUT_COUNT if defined.
Include errno.h.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 19 May 1994 18:42:37 +0000 |
parents | 889a8cd345b2 |
children | c786925f32a5 |
files | src/dispnew.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dispnew.c Thu May 19 18:32:59 1994 +0000 +++ b/src/dispnew.c Thu May 19 18:42:37 1994 +0000 @@ -45,6 +45,8 @@ #include "xterm.h" #endif /* HAVE_X_WINDOWS */ +#include <errno.h> + #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) @@ -55,9 +57,13 @@ /* The s- file might have overridden the definition with one that works for the system's C library. But we are using the GNU C library, so this is the right definition for every system. */ +#ifdef GNU_LIBRARY_PENDING_OUTPUT_COUNT +#define PENDING_OUTPUT_COUNT GNU_LIBRARY_PENDING_OUTPUT_COUNT +#else #undef PENDING_OUTPUT_COUNT #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer) -#else +#endif +#else /* not __GNU_LIBRARY__ */ #ifndef PENDING_OUTPUT_COUNT #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base) #endif