changeset 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 dc980af6073b
children 6bd149ec8b77
files src/s/gnu.h
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
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 */