From 1b1b531857cd17285816fcfd6a1a4cc623c6848b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 30 Oct 2006 11:25:36 +0000 Subject: [PATCH] compilation fix for !wxUSE_MIMETYPE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/utilscmn.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index d06002274f..daaa20101a 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -873,6 +873,7 @@ bool wxLaunchDefaultBrowser(const wxString& urlOrig, int flags) bool ok = false; wxString cmd; +#if wxUSE_MIMETYPE wxFileType *ft = wxTheMimeTypesManager->GetFileTypeFromExtension(_T("html")); if ( ft ) { @@ -882,6 +883,7 @@ bool wxLaunchDefaultBrowser(const wxString& urlOrig, int flags) ok = ft->GetOpenCommand(&cmd, wxFileType::MessageParameters(url)); delete ft; } +#endif // wxUSE_MIMETYPE if ( !ok || cmd.empty() ) {