X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c44fdc9401f92025ea8ae930cd03afd01ef3ae3f..ce4b7808ca940be201422a066de141ca12f13863:/include/wx/html/forcelnk.h diff --git a/include/wx/html/forcelnk.h b/include/wx/html/forcelnk.h index 38aca9f672..8cb3e9662f 100644 --- a/include/wx/html/forcelnk.h +++ b/include/wx/html/forcelnk.h @@ -40,22 +40,11 @@ See mod_*.cpp and htmlwin.cpp for example :-) #ifndef _WX_FORCELNK_H_ #define _WX_FORCELNK_H_ +#include "wx/link.h" - -// This must be part of the module you want to force: -#define FORCE_LINK_ME(module_name) \ - int _link_dummy_func_##module_name (); \ - int _link_dummy_func_##module_name () \ - { \ - return 1; \ - } - - -// And this must be somewhere where it certainly will be linked: -#define FORCE_LINK(module_name) \ - extern int _link_dummy_func_##module_name (); \ - static int _link_dummy_var_##module_name = \ - _link_dummy_func_##module_name (); +// compatibility defines +#define FORCE_LINK wxFORCE_LINK_MODULE +#define FORCE_LINK_ME wxFORCE_LINK_THIS_MODULE #define FORCE_WXHTML_MODULES() \ FORCE_LINK(m_layout) \ @@ -67,7 +56,6 @@ See mod_*.cpp and htmlwin.cpp for example :-) FORCE_LINK(m_hline) \ FORCE_LINK(m_links) \ FORCE_LINK(m_tables) \ - FORCE_LINK(m_meta) \ FORCE_LINK(m_style)