comparison src/s/gnu-linux.h @ 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 d37a5b990e49
children aa58f9998047
comparison
equal deleted inserted replaced
5386:a91748bee657 5387:f99b0175322e
153 153
154 /* #define LINUX_LDAV_FILE "/proc/loadavg" */ 154 /* #define LINUX_LDAV_FILE "/proc/loadavg" */
155 155
156 /* This is needed for disknew.c:update_frame() */ 156 /* This is needed for disknew.c:update_frame() */
157 157
158 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase) 158 #ifdef emacs
159 #include <stdio.h>
160 #ifdef _IO_STDIO_H
161 /* new C libio names */
162 #define PENDING_OUTPUT_COUNT(FILE) \
163 ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
164 #else /* !_IO_STDIO_H */
165 /* old C++ iostream names */
166 #define PENDING_OUTPUT_COUNT(FILE) \
167 ((FILE)->_pptr - (FILE)->_pbase)
168 #endif /* !_IO_STDIO_H */
169 #endif /* emacs */
159 170
160 /* Linux has crt0.o in a non-standard place */ 171 /* Linux has crt0.o in a non-standard place */
161 #define START_FILES pre-crt0.o /usr/lib/crt0.o 172 #define START_FILES pre-crt0.o /usr/lib/crt0.o
162 173
163 /* Linux has SIGIO defined, but not implemented, as of version 0.99.8 174 /* Linux has SIGIO defined, but not implemented, as of version 0.99.8