From 9e392a09f1d058c5d46e686cea418724e2476f87 Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Sun, 4 Nov 2001 18:46:43 +0000 Subject: [PATCH] added wcslen prototype declaration for Darwin/FreeBSD, wcslen is in wxchar.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/wxchar.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index ad2cd98fc1..c4742c529f 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -296,12 +296,17 @@ typedef _TUCHAR wxUChar; # ifdef HAVE_WCSTR_H # include # else - // include wchar.h to get wcslen() declaration used by wx/buffer.h # if defined(HAVE_WCHAR_H) + +// include wchar.h to get wcslen() declaration used by wx/buffer.h # include + # elif defined(__FreeBSD__) || defined(__DARWIN__) + +// include stdlib.h for wchar_t, wcslen is provided in wxchar.cpp # include -# define wxNEED_WCSLEN +size_t WXDLLEXPORT wcslen(const wchar_t *s); + # endif # endif # endif -- 2.47.2