putwchar.c 515 B

12345678910111213141516171819202122232425262728
  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. #include "_stdio.h"
  8. #ifdef __DO_UNLOCKED
  9. wint_t putwchar_unlocked(wchar_t wc)
  10. {
  11. return fputwc_unlocked(wc, stdout);
  12. }
  13. #ifndef __UCLIBC_HAS_THREADS__
  14. strong_alias(putwchar_unlocked,putwchar)
  15. #endif
  16. #elif defined __UCLIBC_HAS_THREADS__
  17. wint_t putwchar(wchar_t wc)
  18. {
  19. return fputwc(wc, stdout);
  20. }
  21. #endif