/* Copyright (C) 2004       Manuel Novoa III    <mjn3@codepoet.org>
 *
 * GNU Library General Public License (LGPL) version 2 or later.
 *
 * Dedicated to Toni.  See uClibc/DEDICATION.mjn3 for details.
 */

#include "_stdio.h"

#ifdef __DO_UNLOCKED

/* libc_hidden_proto(fgetwc_unlocked) */

wint_t getwchar_unlocked(void)
{
	return fgetwc_unlocked(stdin);
}

#ifndef __UCLIBC_HAS_THREADS__
strong_alias(getwchar_unlocked,getwchar)
#endif

#elif defined __UCLIBC_HAS_THREADS__

/* libc_hidden_proto(fgetwc) */

wint_t getwchar(void)
{
	return fgetwc(stdin);
}

#endif