summaryrefslogtreecommitdiff
path: root/src/drivers/Posix
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-12-01 17:31:29 +0000
committerManolo Gouy <Manolo>2016-12-01 17:31:29 +0000
commit21781c3fe922592a34371abdc09dcd13d75b2340 (patch)
tree5e77379785c7ef741cdf77578519c5d5515a7047 /src/drivers/Posix
parent7f3f3f3e08f5e1692449c2f82b9e3802f96bb68b (diff)
Add --enable-print option to configure to allow building without print support on X11 platforms.
Also, the NO_PRINT_SUPPORT preprocessor variable is renamed FL_NO_PRINT_SUPPORT. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Posix')
-rw-r--r--src/drivers/Posix/Fl_Posix_Printer_Driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/Posix/Fl_Posix_Printer_Driver.cxx b/src/drivers/Posix/Fl_Posix_Printer_Driver.cxx
index 24fb4c77e..0b5b1e88b 100644
--- a/src/drivers/Posix/Fl_Posix_Printer_Driver.cxx
+++ b/src/drivers/Posix/Fl_Posix_Printer_Driver.cxx
@@ -18,7 +18,7 @@
#include "../../config_lib.h"
-#if defined(FL_CFG_PRN_PS)
+#if defined(FL_CFG_PRN_PS) && !defined(FL_NO_PRINT_SUPPORT)
#include <FL/Fl_PostScript.H>
#include <FL/Fl_Printer.H>
@@ -133,7 +133,7 @@ int Fl_Posix_Printer_Driver::start_job(int pages, int *firstpage, int *lastpage)
return ps->start_postscript(pages, format, layout); // start printing
}
-#endif // defined(FL_CFG_PRN_PS)
+#endif // defined(FL_CFG_PRN_PS) && !defined(FL_NO_PRINT_SUPPORT)
//