summaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorDavid Chisnall <theraven@FreeBSD.org>2011-12-25 16:03:54 +0000
committerDavid Chisnall <theraven@FreeBSD.org>2011-12-25 16:03:54 +0000
commiteb1f614be5c8e1527fb292e5c928c354fc30be57 (patch)
treeea19e80bf36b77bc3d877a7ea970d17665260642 /include/stdio.h
parentd9667fc69e6959dd163e4fe61e894012375a60b8 (diff)
Notes
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h
index b72bfd4f90c4..0ae4d8a6a66a 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -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))