aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2002-04-30 22:48:27 +0000
committerRichard M. Stallman2002-04-30 22:48:27 +0000
commit397214d4a0b1566abb9ad85326f2c3ecf893afb9 (patch)
tree16cb7ec5b1e8befcae841fef146e2f556f16a48d /src
parentec3476d0019f451f9cd9a315995d2ec6865c90a5 (diff)
downloademacs-397214d4a0b1566abb9ad85326f2c3ecf893afb9.tar.gz
emacs-397214d4a0b1566abb9ad85326f2c3ecf893afb9.zip
[emacs]: Include stdio.h.
(GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/s/gnu.h9
2 files changed, 12 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3ff6ecbbf33..03723ead4fb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12002-04-30 Richard M. Stallman <rms@gnu.org> 12002-04-30 Richard M. Stallman <rms@gnu.org>
2 2
3 * s/gnu.h [emacs]: Include stdio.h.
4 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
5
3 * eval.c (do_autoload): Error if called while preparing to dump. 6 * eval.c (do_autoload): Error if called while preparing to dump.
4 7
5 * fns.c (Frequire): Error if need to load while preparing to dump. 8 * 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. */
78#endif 78#endif
79 79
80#define NARROWPROTO 1 80#define NARROWPROTO 1
81
82#ifdef emacs
83#include <stdio.h> /* Get the definition of _IO_STDIO_H. */
84#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
85/* new C libio names */
86#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
87 ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
88#endif /* !_IO_STDIO_H */
89#endif /* emacs */