From: Sascha Wildner Date: Thu, 10 Mar 2011 21:56:22 +0000 (+0100) Subject: Add missing wcsdup() prototype to . X-Git-Tag: v2.11.0~263^2~1 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/f7fcb730a030feb718b71f8f7d1ab68b7c8134cf Add missing wcsdup() prototype to . This allows C++ programs to access this function at all. Reported-by: Pierre Abbat --- diff --git a/include/wchar.h b/include/wchar.h index a02f98d242..770332b750 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -205,6 +205,10 @@ int vswscanf(const wchar_t * __restrict, const wchar_t * __restrict, __va_list); int vwscanf(const wchar_t * __restrict, __va_list); #endif + +#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE +wchar_t *wcsdup(const wchar_t *); +#endif __END_DECLS #define getwc(f) fgetwc(f)