From c98751cb5b0f9ec5dea42414e61a93e4f0173eac Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 27 Aug 2018 18:23:02 +0200 Subject: [PATCH] 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. --- src/common/dummy.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/common/dummy.cpp b/src/common/dummy.cpp index 0743f76a78..1eabf4b1a1 100644 --- a/src/common/dummy.cpp +++ b/src/common/dummy.cpp @@ -26,3 +26,13 @@ #ifdef __WINDOWS__ #include "wx/msw/msvcrt.h" #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