From 577a52e4fadab0096da1d0ae5c2786445635a0ac Mon Sep 17 00:00:00 2001 From: Kiri Date: Wed, 12 Aug 2015 15:23:36 +0100 Subject: [PATCH] Adjusted MIME Magic so it fetches from an application called file on non-Windows systems. --- source/common/mime.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/common/mime.cpp b/source/common/mime.cpp index 5db593c..8c59be2 100644 --- a/source/common/mime.cpp +++ b/source/common/mime.cpp @@ -19,7 +19,7 @@ wxString GetMIME(wxString FilenameInc){ // TODO: Sort out Win32. -#elif defined(__APPLE__) +#else #include @@ -50,7 +50,9 @@ wxString GetMIME(wxString FilenameInc){ MIMEResult.Trim(); -#else +#endif + +/*#else #include @@ -76,7 +78,7 @@ wxString GetMIME(wxString FilenameInc){ MIMEResult = wxString::FromUTF8(MIMEType); magic_close(MagicCookie); -#endif +#endif*/ return MIMEResult; -- 2.39.5