summaryrefslogtreecommitdiff
path: root/FL/Fl_Printer.H
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-03 22:54:29 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-03 22:54:29 +0000
commitacf6c881d36b675d755433d3cf48613bc46ed78d (patch)
tree13cebc8f8fd918767595da12fafb5a600db2feb3 /FL/Fl_Printer.H
parent933b00b9c9fe55d01a7f1c4831f171482806f85b (diff)
Updated platform specific #if's to report unimplemented code when compiling with FL_PORTING defined and WIN32 and __APPLE__ undefined>
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Printer.H')
-rw-r--r--FL/Fl_Printer.H21
1 files changed, 15 insertions, 6 deletions
diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H
index 7ff255f24..ffea61dc1 100644
--- a/FL/Fl_Printer.H
+++ b/FL/Fl_Printer.H
@@ -30,10 +30,14 @@
#include <FL/Fl_RGB_Image.H>
#include <FL/Fl_Bitmap.H>
#include <stdio.h>
-#if !(defined(__APPLE__) || defined(WIN32))
-#include <FL/Fl_PostScript.H>
-#elif defined(WIN32)
+#ifdef WIN32
#include <commdlg.h>
+#elif defined(__APPLE__)
+ // not needed
+#elif defined(FL_PORTING)
+# pragma message "FL_PORTING: include files needed for printing support"
+#else // X11
+#include <FL/Fl_PostScript.H>
#endif
#if defined(__APPLE__) || defined(WIN32) || defined(FL_DOXYGEN)
@@ -91,9 +95,12 @@ public:
~Fl_System_Printer(void);
}; // class Fl_System_Printer
-#endif
-
-#if !(defined(__APPLE__) || defined(WIN32) )
+#elif defined(FL_PORTING)
+
+# pragma message "FL_PORTING: define your own Fl_xxx_Printer class"
+
+#else
+
/**
Print support under Unix/Linux.
@@ -224,6 +231,8 @@ public:
private:
#if defined(WIN32) || defined(__APPLE__)
Fl_System_Printer *printer;
+#elif defined(FL_PORTING)
+# pragma message "FL_PORTING: instantiate your own Fl_xxx_Printer here"
#else
Fl_PostScript_Printer *printer;
#endif