diff options
-rw-r--r-- | src/stdlib/wcstombs.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/stdlib/wcstombs.c b/src/stdlib/wcstombs.c index 62524aa3..76958ae9 100644 --- a/src/stdlib/wcstombs.c +++ b/src/stdlib/wcstombs.c @@ -1,7 +1,13 @@ #include <stdlib.h> -#include <wchar.h> #include "_stdlib.h" +#ifdef __STDC_VERSION__ +#include <wchar.h> +#else +static size_t wcslen(const wchar_t *); +#include "wchar/wcslen.c" +#endif + /** convert wide character string to multibyte string **/ size_t wcstombs(char * restrict s, const wchar_t * restrict pwcs, size_t n) |