X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be9abe3fd0edec7215fa00aa158f7581da4df2fe..8c517ddd1a2dd7eee7f95eb9ac1783f4a2e6fd76:/src/generic/progdlgg.cpp diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index e12b7f5616..b3b74cc634 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -31,6 +31,8 @@ #include "wx/intl.h" #endif +#if wxUSE_PROGRESSDLG + #include "wx/generic/progdlgg.h" #define LAYOUT_X_MARGIN 8 @@ -122,8 +124,8 @@ wxProgressDialog::wxProgressDialog(wxString const &title, bool wxProgressDialog::Update(int value, const wxString& newmsg) { - wxASSERT_MSG( value == -1 || m_gauge, "can't update non existent dialog" ); - wxASSERT_MSG( value < m_maximum, "invalid progress value" ); + wxASSERT_MSG( value == -1 || m_gauge, _T("can't update non existent dialog") ); + wxASSERT_MSG( value < m_maximum, _T("invalid progress value") ); if( m_gauge ) m_gauge->SetValue(value + 1); @@ -172,3 +174,5 @@ wxProgressDialog::~wxProgressDialog() else wxEnableTopLevelWindows(TRUE); } + +#endif