Mercurial > hg > octave-nkf > gnulib-hg
diff lib/freadseek.c @ 9980:2c1ba629f5d5
New private include file lib/stdio-impl.h.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 26 Apr 2008 18:12:05 +0200 |
parents | 9a02133ad731 |
children | e3d6988a9347 |
line wrap: on
line diff
--- a/lib/freadseek.c +++ b/lib/freadseek.c @@ -25,6 +25,8 @@ #include "freadahead.h" #include "freadptr.h" +#include "stdio-impl.h" + /* Increment the in-memory pointer. INCREMENT must be at most the buffer size returned by freadptr(). This is very cheap (no system calls). */ @@ -41,24 +43,8 @@ fp->_ptr += increment; fp->_rcount -= increment; #elif defined _IOERR /* AIX, HP-UX, IRIX, OSF/1, Solaris, OpenServer, mingw */ -# if defined __sun && defined _LP64 /* Solaris/{SPARC,AMD64} 64-bit */ -# define fp_ ((struct { unsigned char *_ptr; \ - unsigned char *_base; \ - unsigned char *_end; \ - long _cnt; \ - int _file; \ - unsigned int _flag; \ - } *) fp) fp_->_ptr += increment; fp_->_cnt -= increment; -# else -# if defined _SCO_DS /* OpenServer */ -# define _ptr __ptr -# define _cnt __cnt -# endif - fp->_ptr += increment; - fp->_cnt -= increment; -# endif #elif defined __UCLIBC__ /* uClibc */ # ifdef __STDIO_BUFFERS fp->__bufpos += increment;