X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a5940c66c79df48c37de7431250dcc0cd540d82a..4660d7e5d656bd63c6ba410e6bf36486e7a77d4e:/include/wx/wxchar.h?ds=sidebyside diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 55cf190209..5ac03f6416 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -68,6 +68,9 @@ #include #include #include + #elif defined(__CYGWIN__) + #include + #include #endif #elif defined(__VISAGECPP__) && (__IBMCPP__ >= 400) // VisualAge 4.0+ supports TCHAR @@ -113,6 +116,11 @@ // time.h functions -- none defined in tchar.h #define wxAsctime asctime #define wxCtime ctime +#elif defined(__MWERKS__) + // for wcslen + #if wxUSE_WCHAR_T + #include + #endif #endif // compilers with (good) TCHAR support #ifdef wxHAVE_TCHAR_FUNCTIONS @@ -276,8 +284,8 @@ typedef _TUCHAR wxUChar; # define wxUSE_WCHAR_T 0 # elif defined(__WATCOMC__) # define wxUSE_WCHAR_T 0 -# elif defined(__VISAGECPP__) && (__IBMCPP__ >= 400) -# define wxUSE_WCHAR_T 1 +# elif defined(__VISAGECPP__) && (__IBMCPP__ < 400) +# define wxUSE_WCHAR_T 0 # else // add additional compiler checks if this fails # define wxUSE_WCHAR_T 1 @@ -288,10 +296,11 @@ typedef _TUCHAR wxUChar; # ifdef HAVE_WCSTR_H # include # else -# if defined(__FreeBSD__) || defined(__DARWIN__) -# include -# define wxNEED_WCSLEN -# 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 # endif # endif @@ -517,11 +526,6 @@ typedef unsigned __WCHAR_TYPE__ wxUChar; # endif #endif //!Unicode -#if defined(wxNEED_WCSLEN) && wxUSE_UNICODE -# define wcslen wxStrlen -# undef wxNEED_WCSLEN -#endif - // checks whether the passed in pointer is NULL and if the string is empty inline bool wxIsEmpty(const wxChar *p) { return !p || !*p; } @@ -580,10 +584,6 @@ class wxWCharBuffer; WXDLLEXPORT wxWCharBuffer wxSetlocale(int category, const wxChar *locale); #endif -#ifdef wxNEED_WCSLEN // for use in buffer.h -WXDLLEXPORT size_t wcslen(const wchar_t *s); -#endif - #ifdef wxNEED_WX_CTYPE_H WXDLLEXPORT int wxIsalnum(wxChar ch); WXDLLEXPORT int wxIsalpha(wxChar ch);