From: Manuel Novoa III Date: Fri, 30 Jan 2004 21:44:20 +0000 (-0000) Subject: Support new uClibc stdio core. X-Git-Tag: 1_00_pre6~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebce2daa6045c8893897bd5874065ee9b372f46d;p=platform%2Fupstream%2Fbusybox.git Support new uClibc stdio core. --- diff --git a/libbb/printf.c b/libbb/printf.c index 923c5a1..3e69331 100644 --- a/libbb/printf.c +++ b/libbb/printf.c @@ -55,9 +55,13 @@ * #define __FEOF(stream) ((stream)->modeflags & __FLAG_EOF) * #define __FERROR(stream) ((stream)->modeflags & __FLAG_ERROR) */ -#define SET_FERROR_UNLOCKED(S) ((S)->modeflags |= __FLAG_ERROR) +# if defined(__MASK_READING) +# define SET_FERROR_UNLOCKED(S) ((S)->__modeflags |= __FLAG_ERROR) +# else +# define SET_FERROR_UNLOCKED(S) ((S)->modeflags |= __FLAG_ERROR) +# endif -#elif defined(__MODE_ERR) +# elif defined(__MODE_ERR) /* Using either the original stdio implementation (from dev86) or * my original stdio rewrite. Macros were: * #define ferror(fp) (((fp)->mode&__MODE_ERR) != 0) @@ -66,9 +70,9 @@ */ #define SET_FERROR_UNLOCKED(S) ((S)->mode |= __MODE_ERR) -#else +# else #error unknown uClibc stdio implemenation! -#endif +# endif #elif defined(__GLIBC__)