microblaze: sync sysdep-cancel.h/sydep.h with GNU libc
[uclibc-ng.git] / libc / stdio / getwchar.c
blob75266de3a56617799ccc8f74daeb580ade7c821c
1 /* Copyright (C) 2004 Manuel Novoa III <mjn3@codepoet.org>
3 * GNU Library General Public License (LGPL) version 2 or later.
5 * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
6 */
8 #include "_stdio.h"
10 #ifdef __DO_UNLOCKED
13 wint_t getwchar_unlocked(void)
15 return fgetwc_unlocked(stdin);
18 #ifndef __UCLIBC_HAS_THREADS__
19 strong_alias(getwchar_unlocked,getwchar)
20 #endif
22 #elif defined __UCLIBC_HAS_THREADS__
25 wint_t getwchar(void)
27 return fgetwc(stdin);
30 #endif