Merge branch 'fix-build-when-something-disabled'
Fix build when using --disable-{intl,sysoptions}. See https://github.com/wxWidgets/wxWidgets/pull/1712
This commit is contained in:
@@ -130,21 +130,21 @@ wxString wxFileSystemHandler::GetMimeTypeFromExt(const wxString& location)
|
||||
|
||||
return mime;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
if ( ext.IsSameAs(wxT("htm"), false) || ext.IsSameAs(wxT("html"), false) )
|
||||
return wxT("text/html");
|
||||
if ( ext.IsSameAs(wxT("jpg"), false) || ext.IsSameAs(wxT("jpeg"), false) )
|
||||
return wxT("image/jpeg");
|
||||
if ( ext.IsSameAs(wxT("gif"), false) )
|
||||
return wxT("image/gif");
|
||||
if ( ext.IsSameAs(wxT("png"), false) )
|
||||
return wxT("image/png");
|
||||
if ( ext.IsSameAs(wxT("bmp"), false) )
|
||||
return wxT("image/bmp");
|
||||
return wxEmptyString;
|
||||
}
|
||||
#endif // wxUSE_MIMETYPE
|
||||
|
||||
// Without wxUSE_MIMETYPE, recognize just a few hardcoded special cases.
|
||||
if ( ext.IsSameAs(wxT("htm"), false) || ext.IsSameAs(wxT("html"), false) )
|
||||
return wxT("text/html");
|
||||
if ( ext.IsSameAs(wxT("jpg"), false) || ext.IsSameAs(wxT("jpeg"), false) )
|
||||
return wxT("image/jpeg");
|
||||
if ( ext.IsSameAs(wxT("gif"), false) )
|
||||
return wxT("image/gif");
|
||||
if ( ext.IsSameAs(wxT("png"), false) )
|
||||
return wxT("image/png");
|
||||
if ( ext.IsSameAs(wxT("bmp"), false) )
|
||||
return wxT("image/bmp");
|
||||
|
||||
return wxString();
|
||||
}
|
||||
|
||||
|
||||
|
@@ -27,6 +27,7 @@
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/region.h"
|
||||
#include "wx/scopedptr.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/graphics.h"
|
||||
|
Reference in New Issue
Block a user