aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/wcrtomb.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/wcrtomb.c')
-rw-r--r--newlib/libc/stdlib/wcrtomb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/wcrtomb.c b/newlib/libc/stdlib/wcrtomb.c
index 6d670e2..1b84720 100644
--- a/newlib/libc/stdlib/wcrtomb.c
+++ b/newlib/libc/stdlib/wcrtomb.c
@@ -6,6 +6,10 @@
#include <errno.h>
#include "local.h"
+#ifdef _REENT_THREAD_LOCAL
+_Thread_local _mbstate_t _tls_wcrtomb_state;
+#endif
+
size_t
_wcrtomb_r (struct _reent *ptr,
char *s,