ports/graphics/xpdf4/files/patch-xpdf-qt_XpdfWidgetPrint.cc
Cy Schubert 408fb4e129 Add a printer output option, providing a menu item to print
to file or hardcopy.

Note: xpdf4 only supports printing to CUPS.

PR:		222283
2017-09-18 19:45:46 +00:00

20 lines
732 B
C++

--- xpdf-qt/XpdfWidgetPrint.cc.orig 2017-08-08 16:22:50.000000000 -0700
+++ xpdf-qt/XpdfWidgetPrint.cc 2017-09-17 21:42:14.242967000 -0700
@@ -21,7 +21,7 @@
#elif defined(__APPLE__)
# include <CoreFoundation/CoreFoundation.h>
# include <ApplicationServices/ApplicationServices.h>
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__FreeBSD_cc_version)
# include "PSOutputDev.h"
# include <cups/cups.h>
#endif
@@ -315,7 +315,7 @@
// Linux
//------------------------------------------------------------------------
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__FreeBSD_cc_version)
static void fileOut(void *stream, const char *data, int len) {
fwrite(data, 1, len, (FILE *)stream);