From: Vadim Zeitlin Date: Tue, 23 Aug 2005 22:56:41 +0000 (+0000) Subject: removed attempts to link with unicows.lib using #pragmas for msvc, this doesn't work... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6ca1005bcbe645374a8a9ebf275e0b9483cec3e6 removed attempts to link with unicows.lib using #pragmas for msvc, this doesn't work reliably git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/msvc/wx/setup.h b/include/msvc/wx/setup.h index d534594cd4..ca9d84487a 100644 --- a/include/msvc/wx/setup.h +++ b/include/msvc/wx/setup.h @@ -29,26 +29,6 @@ #endif #endif - // if we're using MSLU, ensure that the first library we use is - // unicows.lib - #if wxUSE_UNICODE_MSLU - // for this, first tell linker not to use the standard libraries - #pragma comment(linker, "/nod:kernel32.lib /nod:advapi32.lib /nod:user32.lib /nod:gdi32.lib /nod:shell32.lib /nod:comdlg32.lib /nod:version.lib /nod:mpr.lib /nod:rasapi32.lib /nod:winmm.lib /nod:winspool.lib /nod:vfw32.lib /nod:secur32.lib /nod:oleacc.lib /nod:oledlg.lib /nod:sensapi.lib") - - // then tell it to link with unicows.lib - #pragma comment(lib, "unicows.lib") - - // and only then readd all standard libraries back - #pragma comment(lib, "kernel32.lib") - #pragma comment(lib, "user32.lib") - #pragma comment(lib, "gdi32.lib") - #pragma comment(lib, "winspool.lib") - #pragma comment(lib, "comdlg32.lib") - #pragma comment(lib, "advapi32.lib") - #pragma comment(lib, "shell32.lib") - #pragma comment(lib, "oleacc.lib") - #endif // wxUSE_UNICODE_MSLU - #ifdef _DEBUG #if wxUSE_XML #pragma comment(lib,"wxexpatd") diff --git a/include/wx/msw/chkconf.h b/include/wx/msw/chkconf.h index 9841894966..a980d0445d 100644 --- a/include/wx/msw/chkconf.h +++ b/include/wx/msw/chkconf.h @@ -241,46 +241,5 @@ # endif #endif /* wxUSE_DYNAMIC_LOADER */ - -/* - Finally, although this is not really a configuration check, do it here for - now as we'll supplement it with a real consistency check verifying that - wxUSE_UNICODE_MSLU corresponds to USE_MSLU in the makefiles. But for MSVC - we can do even better: not just check for consistency but even link in the - lib ourselves if needed. - - Notice that this is used for DLL wx build, as otherwise we have to do the - same for the main executable and not the (static) library. It is done in - msvc/wx/setup.h in that case. - */ -#if wxUSE_UNICODE_MSLU && \ - (defined(WXMAKINGDLL) || \ - defined(WXMAKINGDLL_NET) || \ - defined(WXMAKINGDLL_CORE) || \ - defined(WXMAKINGDLL_ADV) || \ - defined(WXMAKINGDLL_ODBC) || \ - defined(WXMAKINGDLL_DBGRID) || \ - defined(WXMAKINGDLL_HTML) || \ - defined(WXMAKINGDLL_GL) || \ - defined(WXMAKINGDLL_XML) || \ - defined(WXMAKINGDLL_XRC) || \ - defined(WXMAKINGDLL_MEDIA)) - // first remove all default libraries - #pragma comment(linker, "/nod:kernel32.lib /nod:advapi32.lib /nod:user32.lib /nod:gdi32.lib /nod:shell32.lib /nod:comdlg32.lib /nod:version.lib /nod:mpr.lib /nod:rasapi32.lib /nod:winmm.lib /nod:winspool.lib /nod:vfw32.lib /nod:secur32.lib /nod:oleacc.lib /nod:oledlg.lib /nod:sensapi.lib") - - // then add unicows.lib as the first library - #pragma comment(lib, "unicows.lib") - - // and only then re-add back all the other ones - #pragma comment(lib, "kernel32.lib") - #pragma comment(lib, "user32.lib") - #pragma comment(lib, "gdi32.lib") - #pragma comment(lib, "winspool.lib") - #pragma comment(lib, "comdlg32.lib") - #pragma comment(lib, "advapi32.lib") - #pragma comment(lib, "shell32.lib") - #pragma comment(lib, "oleacc.lib") -#endif - #endif /* _WX_MSW_CHKCONF_H_ */