diff --git a/include/wx/log.h b/include/wx/log.h index b2dd880d2d..3b231dda2a 100644 --- a/include/wx/log.h +++ b/include/wx/log.h @@ -176,9 +176,11 @@ public: // Set log level. Log messages with level > logLevel will not be logged. static void SetLogLevel(wxLogLevel logLevel) { ms_logLevel = logLevel; } +#if wxABI_VERSION >= 20805 /* 2.8.5+ only */ // should GetActiveTarget() try to create a new log object if the // current is NULL? static void DontCreateOnDemand(); +#endif // Make GetActiveTarget() create a new log object again. static void DoCreateOnDemand(); diff --git a/version-script.in b/version-script.in index 18d940175f..391cdc4a35 100644 --- a/version-script.in +++ b/version-script.in @@ -34,6 +34,7 @@ *wxAuiNotebook*SetNormalFont*; *wxAuiNotebook*SetSelectedFont*; *wxDocument*GetUserReadableName*; + *wxLog*DoCreateOnDemand*; *wxLogChain*DetachOldLog*; *wxMemoryFSHandler*AddFileWithMimeType*; *wxMetafileDC*DoGetTextExtent*;