X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4ad24c9d3d595fa1adb4540fb684da1ca701c67..67fade3398f9c35a8e042749ed340c898f7e7bdd:/src/common/mimecmn.cpp?ds=inline diff --git a/src/common/mimecmn.cpp b/src/common/mimecmn.cpp index 7da7bd3f64..6ee6a7a7fa 100644 --- a/src/common/mimecmn.cpp +++ b/src/common/mimecmn.cpp @@ -24,15 +24,18 @@ // for compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#include "wx/module.h" #ifdef __BORLANDC__ - #pragma hdrstop + #pragma hdrstop #endif +#if wxUSE_MIMETYPE + #ifndef WX_PRECOMP - #include "wx/defs.h" + #include "wx/module.h" #endif +// this one is needed for MSVC5 +#include "wx/module.h" #ifndef WX_PRECOMP #include "wx/string.h" @@ -471,7 +474,7 @@ wxMimeTypesManager::~wxMimeTypesManager() bool wxMimeTypesManager::Unassociate(wxFileType *ft) { -#if defined(__UNIX__) && !defined(__WXPM__) +#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) return m_impl->Unassociate(ft); #else return ft->Unassociate(); @@ -581,7 +584,7 @@ size_t wxMimeTypesManager::EnumAllFileTypes(wxArrayString& mimetypes) void wxMimeTypesManager::Initialize(int mcapStyle, const wxString& sExtraDir) { -#if defined(__UNIX__) && !defined(__WXPM__) +#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) EnsureImpl(); m_impl->Initialize(mcapStyle, sExtraDir); @@ -594,7 +597,7 @@ void wxMimeTypesManager::Initialize(int mcapStyle, // and this function clears all the data from the manager void wxMimeTypesManager::ClearData() { -#if defined(__UNIX__) && !defined(__WXPM__) +#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) EnsureImpl(); m_impl->ClearData(); @@ -630,3 +633,5 @@ public: }; IMPLEMENT_DYNAMIC_CLASS(wxMimeTypeCmnModule, wxModule) + +#endif // wxUSE_MIMETYPE