summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-13 04:11:05 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-13 04:11:05 +0000
commit19609e90b02cd799cb99b7b03c11994e233b1875 (patch)
tree1f9099249d2bacba5b35e21bc1a1193be62df607 /libc
parent9184de4614953897215e989b8720ad7fe6cfde86 (diff)
downloaduClibc-alpine-19609e90b02cd799cb99b7b03c11994e233b1875.tar.bz2
uClibc-alpine-19609e90b02cd799cb99b7b03c11994e233b1875.tar.xz
Merge from trunk.
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/wchar/wchar.c4
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_stdio.h8
2 files changed, 4 insertions, 8 deletions
diff --git a/libc/misc/wchar/wchar.c b/libc/misc/wchar/wchar.c
index 0d7d8371a..1a16fc9d6 100644
--- a/libc/misc/wchar/wchar.c
+++ b/libc/misc/wchar/wchar.c
@@ -98,10 +98,6 @@
* Manuel
*/
-#define vfprintf __vfprintf
-#define fread __fread
-#define fwrite __fwrite
-
#define _GNU_SOURCE
#define _ISOC99_SOURCE
#include <errno.h>
diff --git a/libc/sysdeps/linux/common/bits/uClibc_stdio.h b/libc/sysdeps/linux/common/bits/uClibc_stdio.h
index 1b3f839a4..04844ac6a 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_stdio.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_stdio.h
@@ -68,7 +68,7 @@
/**********************************************************************/
/* Make sure defines related to large files are consistent. */
-#ifdef _LIBC
+#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
#ifdef __UCLIBC_HAS_LFS__
#undef __USE_LARGEFILE
@@ -395,7 +395,7 @@ struct __STDIO_FILE_STRUCT {
/**********************************************************************
* PROTOTYPES OF INTERNAL FUNCTIONS
**********************************************************************/
-#ifdef _LIBC
+#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
extern void _stdio_init(void);
extern void _stdio_term(void);
@@ -412,9 +412,9 @@ extern pthread_mutex_t _stdio_openlist_lock;
#endif
extern int _stdio_openlist_delflag;
extern int _stdio_user_locking;
-#ifdef _LIBC
+/* #ifdef _LIBC */
extern void __stdio_init_mutex(pthread_mutex_t *m) attribute_hidden;
-#endif
+/* #endif */
#endif
#endif