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
This commit is contained in:
Gilles Depeyrot 2001-11-04 18:46:43 +00:00
parent 219f4a6d0d
commit 9e392a09f1

View File

@ -296,12 +296,17 @@ typedef _TUCHAR wxUChar;
# ifdef HAVE_WCSTR_H
# include <wcstr.h>
# 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 <wchar.h>
# elif defined(__FreeBSD__) || defined(__DARWIN__)
// include stdlib.h for wchar_t, wcslen is provided in wxchar.cpp
# include <stdlib.h>
# define wxNEED_WCSLEN
size_t WXDLLEXPORT wcslen(const wchar_t *s);
# endif
# endif
# endif