From d0023038a59915f6a3cf0b73391479badb9e95d0 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 10 Aug 2017 14:22:51 -1000 Subject: [PATCH] cwchar:Use CONFIG_LIBC_WCHAR to only export the wc/mb functions When a build does not want to use wide or multibyte char CONFIG_LIBC_WCHAR is not set. Therefore we should to only export the wc/mb functions when defined. Regardless of the stat of CONFIG_LIBC_WCHAR the non mb/wc definitions such as mbstate_t, wint_t, wctype_t need to be exported. --- include/cxx/cwchar | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/cxx/cwchar b/include/cxx/cwchar index 167f5982ef..4b60226de7 100755 --- a/include/cxx/cwchar +++ b/include/cxx/cwchar @@ -54,6 +54,7 @@ namespace std using ::wctype_t; using ::size_t; +#ifdef CONFIG_LIBC_WCHAR using ::btowc; using ::fwprintf; using ::fwscanf; @@ -132,6 +133,7 @@ namespace std using ::wmemset; using ::wprintf; using ::wscanf; +#endif }; #endif // __INCLUDE_CXX_CWCHAR