X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a497618a568bfdd1059e3f51b560a98fd25b1003..c63c71069e4a80771f28e90dd8dffd439c1b323b:/src/common/mimetype.cpp diff --git a/src/common/mimetype.cpp b/src/common/mimetype.cpp index e1d64f89b0..ca93f95617 100644 --- a/src/common/mimetype.cpp +++ b/src/common/mimetype.cpp @@ -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); }