summaryrefslogtreecommitdiff
path: root/libc/include/stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/include/stdio.h')
-rw-r--r--libc/include/stdio.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/libc/include/stdio.h b/libc/include/stdio.h
index 38021efe9..816bd282a 100644
--- a/libc/include/stdio.h
+++ b/libc/include/stdio.h
@@ -49,6 +49,10 @@
#include <bits/seek_constants.h>
+#if __ANDROID_API__ <= 23
+#include <bits/struct_file.h>
+#endif
+
__BEGIN_DECLS
#if defined(__clang__)
@@ -73,11 +77,11 @@ extern FILE* stderr __INTRODUCED_IN(23);
#define stderr stderr
#else
/* Before M the actual symbols for stdin and friends had different names. */
-extern FILE* __sF[] __REMOVED_IN(23);
+extern FILE __sF[] __REMOVED_IN(23);
-#define stdin __sF[0]
-#define stdout __sF[1]
-#define stderr __sF[2]
+#define stdin (&__sF[0])
+#define stdout (&__sF[1])
+#define stderr (&__sF[2])
#endif
/*