# endif
// wchar_t is available
# undef wxUSE_WCHAR_T
+// This test is for C++Builder
+#if __BORLANDC__ == 0x530
+# define wxUSE_WCHAR_T 0
+#elif
# define wxUSE_WCHAR_T 1
-
+# define wxNEED_WCSLEN
+#endif
# define wxNEED_WX_CTYPE_H
// #define wxStrtok strtok_r // Borland C++ 4.52 doesn't have strtok_r
# define wxNEED_WX_STRING_H
# define wxNEED_WX_STDIO_H
# define wxNEED_WX_STDLIB_H
# define wxNEED_WX_TIME_H
-# define wxNEED_WCSLEN
#else//!TCHAR-aware compilers
# 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
#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