2005-04-05 Shaun Jackman <sjackman@gmail.com>
* libbb/printf.c: Check for __NEWLIB_H__ before __GLIBC__.
This commit is contained in:
parent
03e827a422
commit
6fafa5aa9f
@ -74,6 +74,15 @@
|
|||||||
# error unknown uClibc stdio implemenation!
|
# error unknown uClibc stdio implemenation!
|
||||||
# endif
|
# 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__)
|
#elif defined(__GLIBC__)
|
||||||
|
|
||||||
# if defined(_STDIO_USES_IOSTREAM)
|
# if defined(_STDIO_USES_IOSTREAM)
|
||||||
@ -94,15 +103,6 @@
|
|||||||
|
|
||||||
# endif
|
# 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__)
|
#elif defined(__dietlibc__)
|
||||||
/*
|
/*
|
||||||
* WARNING!!! dietlibc is quite buggy. WARNING!!!
|
* WARNING!!! dietlibc is quite buggy. WARNING!!!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user