X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/750c3a6d070f19576f6829060aa1b37e2d7bc96a..af01f1ba0d697c07173f436ab661b4c833258a91:/include/wx/wxchar.h?ds=sidebyside diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index ad2cd98fc1..072e4cdf28 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -63,7 +63,7 @@ #define wxHAVE_TCHAR_FUNCTIONS #elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x520) #define wxHAVE_TCHAR_FUNCTIONS - #elif defined(__GNUWIN32__) && wxCHECK_W32API_VERSION( 1, 0 ) + #elif defined(__MINGW32__) && wxCHECK_W32API_VERSION( 1, 0 ) #define wxHAVE_TCHAR_FUNCTIONS #include #include @@ -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