From 397214d4a0b1566abb9ad85326f2c3ecf893afb9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 30 Apr 2002 22:48:27 +0000 Subject: [PATCH] [emacs]: Include stdio.h. (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional. --- src/ChangeLog | 3 +++ src/s/gnu.h | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 3ff6ecbbf33..03723ead4fb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2002-04-30 Richard M. Stallman + * s/gnu.h [emacs]: Include stdio.h. + (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional. + * eval.c (do_autoload): Error if called while preparing to dump. * fns.c (Frequire): Error if need to load while preparing to dump. diff --git a/src/s/gnu.h b/src/s/gnu.h index 6a38dc6f588..bc2c1fcfb3a 100644 --- a/src/s/gnu.h +++ b/src/s/gnu.h @@ -78,3 +78,12 @@ Boston, MA 02111-1307, USA. */ #endif #define NARROWPROTO 1 + +#ifdef emacs +#include /* Get the definition of _IO_STDIO_H. */ +#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) +/* new C libio names */ +#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ + ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base) +#endif /* !_IO_STDIO_H */ +#endif /* emacs */ -- 2.39.5