Fix multiple errors in the version script

Embarrassingly, almost none of the entries in the version script were
taken into account due to the function specifications not matching
anything in the generated library because they either omitted the
function signature entirely (which is apparently not allowed in extern
"C++" blocks) or specified it with the wrong "const" placement: "West
const" convention must be used here to match anything.

Fix the signatures to make things really work. Note that some of them
still don't have any effect because they apply to inline functions, but
it seems harmless to keep them.
This commit is contained in:
Vadim Zeitlin
2025-01-01 23:55:50 +01:00
parent 7d43d6b9c6
commit ed7defadd2
+16 -15
View File
@@ -29,38 +29,39 @@
# public symbols added in 3.2.7 (please keep in alphabetical order):
@WX_VERSION_TAG@.7 {
extern "C++" {
"wxAppConsoleBase::SetErrorExitCode";
"wxAppConsoleBase::GetErrorExitCode";
"wxAppConsoleBase::SetErrorExitCode(int)";
"wxAppConsoleBase::GetErrorExitCode() const";
};
};
# public symbols added in 3.2.6 (please keep in alphabetical order):
@WX_VERSION_TAG@.6 {
extern "C++" {
"AddAvailableCatalog(const wxString&, wxLanguage)";
"wxEventTableEntry::wxEventTableEntry(const wxEventTableEntry&)";
"wxSystemSettingsNative::SelectLightDark";
"wxTranslations::AddAvailableCatalog(wxString const&, wxLanguage)";
"wxEventTableEntry::wxEventTableEntry(wxEventTableEntry const&)";
"wxSystemSettingsNative::SelectLightDark(wxColour, wxColour)";
};
};
# public symbols added in 3.2.3 (please keep in alphabetical order):
@WX_VERSION_TAG@.3 {
extern "C++" {
"wxGLCanvasEGL::CreateWaylandSubsurface";
"wxGLCanvasEGL::DestroyWaylandSubsurface";
"wxTranslations::AddAvailableCatalog";
"wxTranslations::GetBestAvailableTranslation";
"wxUILocale::GetMonthName";
"wxUILocale::GetWeekDayName";
"wxGLCanvasEGL::CreateWaylandSubsurface()";
"wxGLCanvasEGL::DestroyWaylandSubsurface()";
"wxTranslations::AddAvailableCatalog(wxString const&)";
"wxTranslations::GetBestAvailableTranslation(wxString const&)";
"wxUILocale::GetMonthName(wxDateTime::Month, wxDateTime::NameFlags) const";
"wxUILocale::GetWeekDayName(wxDateTime::WeekDay, wxDateTime::NameFlags) const";
};
};
# public symbols added in 3.2.2 (please keep in alphabetical order):
@WX_VERSION_TAG@.2 {
extern "C++" {
"wxUILocale::GetSystemLocaleId";
"wxWithImages::GetImageLogicalSize";
"wxWithImages::GetImageBitmapFor";
"wxUILocale::GetSystemLocaleId()";
"wxWithImages::GetImageLogicalSize(wxWindow const*, int)";
"wxWithImages::GetImageLogicalSize(wxWindow const*, int, int&, int&)";
"wxWithImages::GetImageBitmapFor(wxWindow const*, int)";
};
};
@@ -68,7 +69,7 @@
@WX_VERSION_TAG@.1 {
extern "C++" {
"wxApp::GTKAllowDiagnosticsControl()";
"wxFileDialog::AddShortcut(const wxString&, int)";
"wxFileDialogBase::AddShortcut(wxString const&, int)";
};
};