2005-04-05 Shaun Jackman <sjackman@gmail.com>

* libbb/printf.c: Check for __NEWLIB_H__ before __GLIBC__.
This commit is contained in:
Mike Frysinger 2005-07-26 23:05:03 +00:00
parent 03e827a422
commit 6fafa5aa9f

View File

@ -74,6 +74,15 @@
# error unknown uClibc stdio implemenation!
# endif
#elif defined(__NEWLIB_H__)
/* I honestly don't know if there are different versions of stdio in
* newlibs history. Anyway, here's what's current.
* #define __sfeof(p) (((p)->_flags & __SEOF) != 0)
* #define __sferror(p) (((p)->_flags & __SERR) != 0)
* #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF)))
*/
# define SET_FERROR_UNLOCKED(S) ((S)->_flags |= __SERR)
#elif defined(__GLIBC__)
# if defined(_STDIO_USES_IOSTREAM)
@ -94,15 +103,6 @@
# endif
#elif defined(__NEWLIB_H__)
/* I honestly don't know if there are different versions of stdio in
* newlibs history. Anyway, here's what's current.
* #define __sfeof(p) (((p)->_flags & __SEOF) != 0)
* #define __sferror(p) (((p)->_flags & __SERR) != 0)
* #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF)))
*/
#define SET_FERROR_UNLOCKED(S) ((S)->_flags |= __SERR)
#elif defined(__dietlibc__)
/*
* WARNING!!! dietlibc is quite buggy. WARNING!!!