Restore __is_threaded in C++ mode. Some Google stuff needs it apparently.
Reported by: swills Approved by: dim (mentor)
This commit is contained in:
parent
d9667fc69e
commit
eb1f614be5
@ -470,6 +470,9 @@ static __inline int __sputc(int _c, FILE *_p) {
|
||||
__swbuf((int)(c), p) : \
|
||||
(*(p)->_p = (c), (int)*(p)->_p++))
|
||||
#endif
|
||||
|
||||
extern int __isthreaded;
|
||||
|
||||
#ifndef __cplusplus
|
||||
|
||||
#define __sfeof(p) (((p)->_flags & __SEOF) != 0)
|
||||
@ -477,7 +480,6 @@ static __inline int __sputc(int _c, FILE *_p) {
|
||||
#define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF)))
|
||||
#define __sfileno(p) ((p)->_file)
|
||||
|
||||
extern int __isthreaded;
|
||||
|
||||
#define feof(p) (!__isthreaded ? __sfeof(p) : (feof)(p))
|
||||
#define ferror(p) (!__isthreaded ? __sferror(p) : (ferror)(p))
|
||||
|
Loading…
Reference in New Issue
Block a user