diff options
| author | Richard M. Stallman | 1994-05-19 18:42:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-19 18:42:37 +0000 |
| commit | 3883a901718c3d2ad796f0603bba27b54bffe2f0 (patch) | |
| tree | 01c87664a60563a093033d8ba5ec79873105c3a6 /src | |
| parent | 1ad2277b682330d190c905a744f674bf89f8b9d8 (diff) | |
| download | emacs-3883a901718c3d2ad796f0603bba27b54bffe2f0.tar.gz emacs-3883a901718c3d2ad796f0603bba27b54bffe2f0.zip | |
(PENDING_OUTPUT_COUNT): If __GNU_LIBRARY__,
use GNU_LIBRARY_PENDING_OUTPUT_COUNT if defined.
Include errno.h.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 8001c545029..bc521fb26e1 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -45,6 +45,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 45 | #include "xterm.h" | 45 | #include "xterm.h" |
| 46 | #endif /* HAVE_X_WINDOWS */ | 46 | #endif /* HAVE_X_WINDOWS */ |
| 47 | 47 | ||
| 48 | #include <errno.h> | ||
| 49 | |||
| 48 | #define max(a, b) ((a) > (b) ? (a) : (b)) | 50 | #define max(a, b) ((a) > (b) ? (a) : (b)) |
| 49 | #define min(a, b) ((a) < (b) ? (a) : (b)) | 51 | #define min(a, b) ((a) < (b) ? (a) : (b)) |
| 50 | 52 | ||
| @@ -55,9 +57,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 55 | /* The s- file might have overridden the definition with one that works for | 57 | /* The s- file might have overridden the definition with one that works for |
| 56 | the system's C library. But we are using the GNU C library, so this is | 58 | the system's C library. But we are using the GNU C library, so this is |
| 57 | the right definition for every system. */ | 59 | the right definition for every system. */ |
| 60 | #ifdef GNU_LIBRARY_PENDING_OUTPUT_COUNT | ||
| 61 | #define PENDING_OUTPUT_COUNT GNU_LIBRARY_PENDING_OUTPUT_COUNT | ||
| 62 | #else | ||
| 58 | #undef PENDING_OUTPUT_COUNT | 63 | #undef PENDING_OUTPUT_COUNT |
| 59 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer) | 64 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer) |
| 60 | #else | 65 | #endif |
| 66 | #else /* not __GNU_LIBRARY__ */ | ||
| 61 | #ifndef PENDING_OUTPUT_COUNT | 67 | #ifndef PENDING_OUTPUT_COUNT |
| 62 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base) | 68 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base) |
| 63 | #endif | 69 | #endif |