changeset 2101:621286dcea69

avoid linking unused printer code http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-June/008447.html
author Domingo Alvarez Duarte
date Mo, 20 Jun 2011 17:51:33 +0000
parents 37b9b17dc324
children e1973d1962c5
files dw/fltkplatform.cc
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkplatform.cc	Sa Jun 18 13:54:11 2011 -0400
+++ b/dw/fltkplatform.cc	Mo Jun 20 17:51:33 2011 +0000
@@ -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 {