diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:47:31 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:47:31 +0000 |
commit | 7582e3938bb9fb3e4664efdfb2313df29f27b70b (patch) | |
tree | 65bec6df3984fb0b437488fd86eb1359e9c84af4 /include/wchar.h | |
parent | 733153a0fb52facba02c550ec849f0c734dfa412 (diff) | |
download | src-7582e3938bb9fb3e4664efdfb2313df29f27b70b.tar.gz src-7582e3938bb9fb3e4664efdfb2313df29f27b70b.zip |
Vendor import of libc++ trunk r303197:vendor/libc++/libc++-trunk-r303197
Notes
Notes:
svn path=/vendor/libc++/dist/; revision=318374
svn path=/vendor/libc++/libc++-trunk-r303197/; revision=318375; tag=vendor/libc++/libc++-trunk-r303197
Diffstat (limited to 'include/wchar.h')
-rw-r--r-- | include/wchar.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/wchar.h b/include/wchar.h index c0c6ef754fbe..25a318faff25 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -166,9 +166,12 @@ inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD } #endif -#if defined(__cplusplus) && (defined(_LIBCPP_MSVCRT) || defined(__MINGW32__)) -extern "C++" { -#include <support/win32/support.h> // pull in *swprintf defines +#if defined(__cplusplus) && defined(_LIBCPP_MSVCRT) +extern "C" { +size_t mbsnrtowcs(wchar_t *__restrict dst, const char **__restrict src, + size_t nmc, size_t len, mbstate_t *__restrict ps); +size_t wcsnrtombs(char *__restrict dst, const wchar_t **__restrict src, + size_t nwc, size_t len, mbstate_t *__restrict ps); } // extern "C++" #endif // __cplusplus && _LIBCPP_MSVCRT |