[git commit future 1/1] stdio.h: move __STDIO_{GETC, PUTC}_MACRO dependent part to uClibc_stdio.h
Khem Raj
raj.khem at gmail.com
Sat Mar 19 18:51:25 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=b319664ef76235bd07f387a9f76e9a385ac92f80
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
include/stdio.h | 7 -------
libc/sysdeps/linux/common/bits/uClibc_stdio.h | 6 ++++++
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/include/stdio.h b/include/stdio.h
index f542ddc..dc3f57f 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -909,14 +909,7 @@ extern void funlockfile (FILE *__stream) __THROW;
#define fputc_unlocked(_ch, _fp) __FPUTC_UNLOCKED(_ch, _fp)
#endif
-#ifndef __STDIO_GETC_MACRO
-#define __stdin stdin
-#endif
#define getchar() __GETC(__stdin)
-
-#ifndef __STDIO_PUTC_MACRO
-#define __stdout stdout
-#endif
#define putchar(_ch) __PUTC((_ch), __stdout)
#if defined __USE_POSIX || defined __USE_MISC
diff --git a/libc/sysdeps/linux/common/bits/uClibc_stdio.h b/libc/sysdeps/linux/common/bits/uClibc_stdio.h
index d5a522a..db28ff7 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_stdio.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_stdio.h
@@ -470,6 +470,8 @@ extern FILE *__stdin; /* For getchar() macro. */
#else
+# define __stdin stdin
+
#endif /* __STDIO_GETC_MACRO */
@@ -529,4 +531,8 @@ extern FILE *__stdout; /* For putchar() macro. */
# endif
# endif
+#else
+
+# define __stdout stdout
+
#endif /* __STDIO_PUTC_MACRO */
--
1.7.3.4
More information about the uClibc-cvs
mailing list