]> git.saurik.com Git - wxWidgets.git/commitdiff
wxUSE_MIMTYPE gaurd
authorRyan Norton <wxprojects@comcast.net>
Thu, 21 Apr 2005 20:30:03 +0000 (20:30 +0000)
committerRyan Norton <wxprojects@comcast.net>
Thu, 21 Apr 2005 20:30:03 +0000 (20:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/utilscmn.cpp

index bd2714f1eb326b5924ffa59b24c008db988240fb..b98e0b2d5c931b141fbd42084ee6cdb82011fadc 100644 (file)
@@ -629,6 +629,7 @@ bool wxLaunchDefaultBrowser(const wxString& url)
       }
 
 #else
+#if wxUSE_MIMETYPE
     // Non-windows way
     wxFileType *ft = 
     wxTheMimeTypesManager->GetFileTypeFromExtension (_T("html")); 
@@ -658,6 +659,10 @@ bool wxLaunchDefaultBrowser(const wxString& url)
     }
     else
       return false;
+#else
+      return false;
+#endif //!wxUSE_MIMETYPE
+
 #endif
 
     //success - hopefully