OSDN Git Service

Last portion of libc_hidden_proto removal.
[uclinux-h8/uClibc.git] / libc / stdio / putwchar.c
1 /* Copyright (C) 2004       Manuel Novoa III    <mjn3@codepoet.org>
2  *
3  * GNU Library General Public License (LGPL) version 2 or later.
4  *
5  * Dedicated to Toni.  See uClibc/DEDICATION.mjn3 for details.
6  */
7
8 #include "_stdio.h"
9
10 #ifdef __DO_UNLOCKED
11
12 /* libc_hidden_proto(fputwc_unlocked) */
13
14 wint_t putwchar_unlocked(wchar_t wc)
15 {
16         return fputwc_unlocked(wc, stdout);
17 }
18
19 #ifndef __UCLIBC_HAS_THREADS__
20 strong_alias(putwchar_unlocked,putwchar)
21 #endif
22
23 #elif defined __UCLIBC_HAS_THREADS__
24
25 /* libc_hidden_proto(__fputc_unlocked) */
26 /* psm: should this be fputwc? */
27 /* libc_hidden_proto(fputc) */
28
29 wint_t putwchar(wchar_t wc)
30 {
31         return fputc(wc, stdout);
32 }
33
34 #endif