Force creating import library for "adv" DLL under MSW

No library was created as no symbols were exported by the DLL any more,
so add a dummy symbol just to force the import library creation -- this
is important to let the projects referencing it to continue to link,
even if it's now useless.
This commit is contained in:
Vadim Zeitlin
2018-08-27 18:23:02 +02:00
parent 21263b8c22
commit c98751cb5b

View File

@@ -26,3 +26,13 @@
#ifdef __WINDOWS__ #ifdef __WINDOWS__
#include "wx/msw/msvcrt.h" #include "wx/msw/msvcrt.h"
#endif #endif
#ifdef WXMAKINGDLL_ADV
// This is a hack required to create an import library for the "adv" DLL which
// doesn't contain anything any more and is preserved only for compatibility.
extern WXEXPORT void wxAdvLibraryIsObsoleteDontUse()
{
}
#endif // WXMAKINGDLL_ADV