]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/log.h
fixing warning and compile error against 10.4
[wxWidgets.git] / include / wx / log.h
index c632435b62adbe73be41f8f4cae7ce231239673d..71903146580a38e228e2952fc371f05cb668e06f 100644 (file)
@@ -1571,8 +1571,8 @@ wxSafeShowMessage(const wxString& title, const wxString& text);
 #endif
 
 // 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
+// default by wxIMPLEMENT_APP() so usually it doesn't need to be used explicitly
+#if defined(NDEBUG) && wxUSE_LOG_DEBUG
     #define wxDISABLE_DEBUG_LOGGING_IN_RELEASE_BUILD() \
         wxLog::SetLogLevel(wxLOG_Info)
 #else // !NDEBUG