]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/wxchar.h
Made various Motif fixes, wxListBox/wxChoice derive from wxControlWithItems,
[wxWidgets.git] / include / wx / wxchar.h
index 4b7da77b41606d016e30e719c6e31c670a1039e0..75396ac0b79c2c34f63184a6d2cce903c25f57dd 100644 (file)
@@ -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