]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mimetype.cpp
wxStrnicmp() function is not defined under windows, so I've provided a workaround...
[wxWidgets.git] / src / common / mimetype.cpp
index e1d64f89b06b34e5dc0af80fd48bbadc11cab2de..ca93f9561711329bbf866807396b6595e38ecc7c 100644 (file)
@@ -1272,7 +1272,11 @@ bool wxMimeTypesManagerImpl::ReadMimeTypes(const wxString& strFileName)
         strExtensions.Replace(wxT(","), wxT(" "));
 
         // also deal with the leading dot
+#if defined(__VISAGECPP__) && __IBMCPP__ >= 400
+        if ( !strExtensions.IsEmpty() && strExtensions[size_t(0)] == wxT('.') ) {
+#else
         if ( !strExtensions.IsEmpty() && strExtensions[0] == wxT('.') ) {
+#endif
             strExtensions.erase(0, 1);
         }