git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11651
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
static int _link_dummy_var_##module_name = \
_link_dummy_func_##module_name ();
+#define FORCE_WXHTML_MODULES() \
+ FORCE_LINK(m_layout) \
+ FORCE_LINK(m_fonts) \
+ FORCE_LINK(m_image) \
+ FORCE_LINK(m_list) \
+ FORCE_LINK(m_dflist) \
+ FORCE_LINK(m_pre) \
+ FORCE_LINK(m_hline) \
+ FORCE_LINK(m_links) \
+ FORCE_LINK(m_tables) \
+ FORCE_LINK(m_meta)
+
#endif // _WX_FORCELNK_H_
#endif
#include "wx/html/htmlwin.h"
-#include "wx/html/forcelnk.h"
#include "wx/html/htmlproc.h"
#include "wx/list.h"
IMPLEMENT_DYNAMIC_CLASS(wxHtmlWinModule, wxModule)
-
-
-///// default mod handlers are forced there:
-
-FORCE_LINK(m_layout)
-FORCE_LINK(m_fonts)
-FORCE_LINK(m_image)
-FORCE_LINK(m_list)
-FORCE_LINK(m_dflist)
-FORCE_LINK(m_pre)
-FORCE_LINK(m_hline)
-FORCE_LINK(m_links)
-FORCE_LINK(m_tables)
-FORCE_LINK(m_meta)
-
+// This hack forces the linker to always link in m_* files
+// (wxHTML doesn't work without handlers from these files)
+#include "wx/html/forcelnk.h"
+FORCE_WXHTML_MODULES()
#endif
}
+// This hack forces the linker to always link in m_* files
+// (wxHTML doesn't work without handlers from these files)
+#include "wx/html/forcelnk.h"
+FORCE_WXHTML_MODULES()
#endif // wxUSE_HTML & wxUSE_PRINTING_ARCHITECTURE