X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..6adaedf0fc6607ee5bb4e86358396e5e07c6649f:/include/wx/wxchar.h diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 4b7da77b41..75396ac0b7 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -303,7 +303,10 @@ typedef unsigned __WCHAR_TYPE__ wxUChar; # ifdef __FreeBSD__ # undef _T # endif -# define _T(x) x + +# if !defined(__MINGW32__) || !defined(_T) +# define _T(x) x +# endif // ctype.h functions # define wxIsalnum isalnum @@ -346,10 +349,13 @@ typedef unsigned __WCHAR_TYPE__ wxUChar; #if !defined(wxStricmp) && !wxUSE_UNICODE # if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__SALFORDC__) || defined(__VISAGECPP__) || defined(__EMX__) # define wxStricmp stricmp +# define wxStrnicmp strnicmp # elif defined(__SC__) || defined(__VISUALC__) || (defined(__MWERKS__) && defined(__INTEL__)) # define wxStricmp _stricmp +# define wxStrnicmp _strnicmp # elif defined(__UNIX__) || defined(__GNUWIN32__) # define wxStricmp strcasecmp +# define wxStrnicmp strncasecmp # elif defined(__MWERKS__) && !defined(__INTEL__) // use wxWindows' implementation # else