X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5438a5665e35ee6286c5af73747873df9daed252..79ad56d0b3092eb1ccc51c77ddb4ccfd7f7cc8d8:/src/html/htmprint.cpp?ds=sidebyside

diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp
index 9b25e01dc6..3dd7639e7b 100644
--- a/src/html/htmprint.cpp
+++ b/src/html/htmprint.cpp
@@ -30,6 +30,7 @@
 
 #if wxUSE_HTML && wxUSE_PRINTING_ARCHITECTURE && wxUSE_STREAMS
 
+#include "wx/dc.h"
 #include "wx/print.h"
 #include "wx/printdlg.h"
 #include "wx/html/htmprint.h"
@@ -594,5 +595,9 @@ wxHtmlPrintout *wxHtmlEasyPrinting::CreatePrintout()
 }
 
 
+// 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