From 750c3a6d070f19576f6829060aa1b37e2d7bc96a Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Sun, 4 Nov 2001 17:20:38 +0000 Subject: [PATCH] wchar/wcslen corrections for Darwin (same as FreeBSD) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/wxchar.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 5ac03f6416..ad2cd98fc1 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -273,7 +273,7 @@ typedef _TUCHAR wxUChar; # if defined(__VISUALC__) && (__VISUALC__ < 900) # define wxUSE_WCHAR_T 0 // wchar_t is not available for MSVC++ 1.5 # elif defined(__UNIX__) -# if defined(HAVE_WCSTR_H) || defined(HAVE_WCHAR_H) || defined(__FreeBSD__) || (defined(__DARWIN__)) +# if defined(HAVE_WCSTR_H) || defined(HAVE_WCHAR_H) || defined(__FreeBSD__) || defined(__DARWIN__) # define wxUSE_WCHAR_T 1 # else # define wxUSE_WCHAR_T 0 @@ -296,12 +296,12 @@ typedef _TUCHAR wxUChar; # ifdef HAVE_WCSTR_H # include # else - // VZ: do we really have to include this? -# include - // include wchar.h to get wcslen() declaration used by wx/buffer.h # if defined(HAVE_WCHAR_H) # include +# elif defined(__FreeBSD__) || defined(__DARWIN__) +# include +# define wxNEED_WCSLEN # endif # endif # endif -- 2.45.2