# HG changeset patch # User Richard M. Stallman # Date 1020206900 0 # Node ID 2f566cb931fe07b016b3fc1d607c9b573105d5a3 # Parent dc980af6073b95cf9abdca615e6f7352e68e8f15 [emacs]: Include stdio.h. (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional. diff -r dc980af6073b -r 2f566cb931fe src/s/gnu.h --- 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 /* 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 */