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.
This commit is contained in:
David Sidrane 2017-08-10 14:22:51 -10:00
parent c4c37239d6
commit d0023038a5

View File

@ -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