Mercurial > hg > octave-shane > gnulib-hg
comparison lib/fseterr.c @ 10780:5c7a68d31801
Add support for Haiku.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 10 Nov 2008 12:37:32 +0100 |
parents | e3d6988a9347 |
children | d4475bf2a2bf |
comparison
equal
deleted
inserted
replaced
10779:fc7783b21cb8 | 10780:5c7a68d31801 |
---|---|
27 fseterr (FILE *fp) | 27 fseterr (FILE *fp) |
28 { | 28 { |
29 /* Most systems provide FILE as a struct and the necessary bitmask in | 29 /* Most systems provide FILE as a struct and the necessary bitmask in |
30 <stdio.h>, because they need it for implementing getc() and putc() as | 30 <stdio.h>, because they need it for implementing getc() and putc() as |
31 fast macros. */ | 31 fast macros. */ |
32 #if defined _IO_ferror_unlocked || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Linux libc5 */ | 32 #if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ |
33 fp->_flags |= _IO_ERR_SEEN; | 33 fp->_flags |= _IO_ERR_SEEN; |
34 #elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */ | 34 #elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */ |
35 fp_->_flags |= __SERR; | 35 fp_->_flags |= __SERR; |
36 #elif defined __EMX__ /* emx+gcc */ | 36 #elif defined __EMX__ /* emx+gcc */ |
37 fp->_flags |= _IOERR; | 37 fp->_flags |= _IOERR; |