Move wxGetLibraryVersionInfo() to core from base.

This function uses the GUI toolkit information and so can't be defined in
wxBase. The code only compiled before because the function was erroneously
defined in wxCore even though it was declared as WXDLLIMPEXP_BASE.

Fix this by declaring it with WXDLLIMPEXP_CORE too. This corrects problems in
MSW DLL build.

If we need to get a string containing user-readable wxBase version too, we
should add another function (as it's not possible to virtualize this one) but
such function doesn't seem incredibly useful to have anyhow.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2010-12-30 22:37:03 +00:00
parent 2e49a8074e
commit 9aea251043
2 changed files with 7 additions and 1 deletions

View File

@ -141,7 +141,7 @@ WXDLLIMPEXP_BASE void wxBell();
WXDLLIMPEXP_CORE void wxInfoMessageBox(wxWindow* parent);
#endif // wxUSE_MSGDLG
WXDLLIMPEXP_BASE wxVersionInfo wxGetLibraryVersionInfo();
WXDLLIMPEXP_CORE wxVersionInfo wxGetLibraryVersionInfo();
// Get OS description as a user-readable string
WXDLLIMPEXP_BASE wxString wxGetOsDescription();

View File

@ -150,12 +150,18 @@ void wxBell();
*/
void wxInfoMessageBox(wxWindow* parent);
//@}
/** @addtogroup group_funcmacro_version */
//@{
/**
Get wxWidgets version information.
@since 2.9.2
@see wxVersionInfo
@header{wx/utils.h}
@library{wxcore}
*/
wxVersionInfo wxGetLibraryVersionInfo();