changeset 5387:f99b0175322e

(PENDING_OUTPUT_COUNT): Two alternate definitions for different versions of stdio.h.
author Richard M. Stallman <rms@gnu.org>
date Fri, 31 Dec 1993 10:42:30 +0000
parents a91748bee657
children 95ef89411635
files src/s/gnu-linux.h
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/gnu-linux.h	Fri Dec 31 09:26:43 1993 +0000
+++ b/src/s/gnu-linux.h	Fri Dec 31 10:42:30 1993 +0000
@@ -155,7 +155,18 @@
 
 /* This is needed for disknew.c:update_frame() */
 
-#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)
+#ifdef emacs
+#include <stdio.h>
+#ifdef _IO_STDIO_H
+/* new C libio names */
+#define PENDING_OUTPUT_COUNT(FILE) \
+  ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
+#else /* !_IO_STDIO_H */
+/* old C++ iostream names */
+#define PENDING_OUTPUT_COUNT(FILE) \
+  ((FILE)->_pptr - (FILE)->_pbase)
+#endif /* !_IO_STDIO_H */
+#endif /* emacs */
 
 /* Linux has crt0.o in a non-standard place */
 #define START_FILES pre-crt0.o /usr/lib/crt0.o