summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDomingo Alvarez Duarte <devnull@localhost>2011-06-20 17:51:33 +0000
committerDomingo Alvarez Duarte <devnull@localhost>2011-06-20 17:51:33 +0000
commit9075e3ecc988d22af27cbc906395bba4ca484eef (patch)
treea3b47a64fc5396f1eb36ad7e9fe356994a9dad6f
parent72a39b9bfd045295e23ed387143c5783806ec993 (diff)
avoid linking unused printer code
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-June/008447.html
-rw-r--r--dw/fltkplatform.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/dw/fltkplatform.cc b/dw/fltkplatform.cc
index d4db5d7a..f45a15db 100644
--- a/dw/fltkplatform.cc
+++ b/dw/fltkplatform.cc
@@ -26,6 +26,19 @@
#include <FL/fl_draw.H>
#include <FL/Fl_Tooltip.H>
+#include <FL/Fl_Paged_Device.H>
+
+/* Use of Fl_Text_Display links in a lot of printer code that we don't have
+ * any need for currently. This stub prevents that.
+ */
+class FL_EXPORT Fl_Printer : public Fl_Paged_Device {
+public:
+ static const char *class_id;
+ Fl_Printer(void) {};
+};
+
+const char *Fl_Printer::class_id = "Fl_Printer";
+
namespace dw {
namespace fltk {