X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55e5154d2cc5f994c34b128cd05fdc14f2c2fc43..c2246a3881e5c3293b70560dde099ee772c86d73:/include/wx/log.h diff --git a/include/wx/log.h b/include/wx/log.h index c632435b62..41933e8534 100644 --- a/include/wx/log.h +++ b/include/wx/log.h @@ -1572,7 +1572,7 @@ wxSafeShowMessage(const wxString& title, const wxString& text); // macro which disables debug logging in release builds: this is done by // default by IMPLEMENT_APP() so usually it doesn't need to be used explicitly -#ifdef NDEBUG +#if defined(NDEBUG) && wxUSE_LOG_DEBUG #define wxDISABLE_DEBUG_LOGGING_IN_RELEASE_BUILD() \ wxLog::SetLogLevel(wxLOG_Info) #else // !NDEBUG