aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2004-01-30 21:44:20 +0000
committerManuel Novoa III <mjn3@codepoet.org>2004-01-30 21:44:20 +0000
commitebce2daa6045c8893897bd5874065ee9b372f46d (patch)
treef8a5565fb0a3204aac523b1f913e4ef4217ae784
parentf88bb72f1fa65ea05293775d01eae79a341302d6 (diff)
downloadbusybox-w32-ebce2daa6045c8893897bd5874065ee9b372f46d.tar.gz
busybox-w32-ebce2daa6045c8893897bd5874065ee9b372f46d.tar.bz2
busybox-w32-ebce2daa6045c8893897bd5874065ee9b372f46d.zip
Support new uClibc stdio core.
-rw-r--r--libbb/printf.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/libbb/printf.c b/libbb/printf.c
index 923c5a1a4..3e69331c5 100644
--- a/libbb/printf.c
+++ b/libbb/printf.c
@@ -55,9 +55,13 @@
55 * #define __FEOF(stream) ((stream)->modeflags & __FLAG_EOF) 55 * #define __FEOF(stream) ((stream)->modeflags & __FLAG_EOF)
56 * #define __FERROR(stream) ((stream)->modeflags & __FLAG_ERROR) 56 * #define __FERROR(stream) ((stream)->modeflags & __FLAG_ERROR)
57 */ 57 */
58#define SET_FERROR_UNLOCKED(S) ((S)->modeflags |= __FLAG_ERROR) 58# if defined(__MASK_READING)
59# define SET_FERROR_UNLOCKED(S) ((S)->__modeflags |= __FLAG_ERROR)
60# else
61# define SET_FERROR_UNLOCKED(S) ((S)->modeflags |= __FLAG_ERROR)
62# endif
59 63
60#elif defined(__MODE_ERR) 64# elif defined(__MODE_ERR)
61/* Using either the original stdio implementation (from dev86) or 65/* Using either the original stdio implementation (from dev86) or
62 * my original stdio rewrite. Macros were: 66 * my original stdio rewrite. Macros were:
63 * #define ferror(fp) (((fp)->mode&__MODE_ERR) != 0) 67 * #define ferror(fp) (((fp)->mode&__MODE_ERR) != 0)
@@ -66,9 +70,9 @@
66 */ 70 */
67#define SET_FERROR_UNLOCKED(S) ((S)->mode |= __MODE_ERR) 71#define SET_FERROR_UNLOCKED(S) ((S)->mode |= __MODE_ERR)
68 72
69#else 73# else
70#error unknown uClibc stdio implemenation! 74#error unknown uClibc stdio implemenation!
71#endif 75# endif
72 76
73#elif defined(__GLIBC__) 77#elif defined(__GLIBC__)
74 78