Mercurial > emacs
diff src/s/gnu.h @ 45047:2f566cb931fe
[emacs]: Include stdio.h.
(GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Tue, 30 Apr 2002 22:48:20 +0000 |
| parents | 7f198d98ac14 |
| children | 91ce10cb395c |
line wrap: on
line diff
--- a/src/s/gnu.h Tue Apr 30 20:42:40 2002 +0000 +++ b/src/s/gnu.h Tue Apr 30 22:48:20 2002 +0000 @@ -78,3 +78,12 @@ #endif #define NARROWPROTO 1 + +#ifdef emacs +#include <stdio.h> /* 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 */
