diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-04-30 22:48:27 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-04-30 22:48:27 +0000 |
commit | 397214d4a0b1566abb9ad85326f2c3ecf893afb9 (patch) | |
tree | 16cb7ec5b1e8befcae841fef146e2f556f16a48d /src/s/gnu.h | |
parent | ec3476d0019f451f9cd9a315995d2ec6865c90a5 (diff) | |
download | emacs-397214d4a0b1566abb9ad85326f2c3ecf893afb9.tar.gz |
[emacs]: Include stdio.h.
(GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
Diffstat (limited to 'src/s/gnu.h')
-rw-r--r-- | src/s/gnu.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 <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 */ |