summaryrefslogtreecommitdiff
path: root/cups
diff options
context:
space:
mode:
Diffstat (limited to 'cups')
-rw-r--r--cups/gdevcups.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/cups/gdevcups.c b/cups/gdevcups.c
index a9dbc142..eb20ed20 100644
--- a/cups/gdevcups.c
+++ b/cups/gdevcups.c
@@ -76,6 +76,12 @@
#include <stdlib.h>
#include <ctype.h>
+
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
#include <cups/raster.h>
#include <cups/ppd.h>
#include <math.h>
@@ -461,6 +467,12 @@ cups_initialize_device_procs(gx_device *dev)
gx_device_cups gs_cups_device = { gs_xxx_device("cups", "") };
gx_device_cups gs_pwgraster_device = { gs_xxx_device("pwgraster",
"PwgRaster") };
+#if defined(CUPS_RASTER_HAVE_APPLERASTER)
+gx_device_cups gs_appleraster_device = { gs_xxx_device("appleraster",
+ "PwgRaster") };
+gx_device_cups gs_urf_device = { gs_xxx_device("urf",
+ "PwgRaster") };
+#endif
/*
* Local functions...
@@ -2947,7 +2959,14 @@ cups_print_pages(gx_device_printer *pdev,
#if defined(CUPS_RASTER_HAVE_PWGRASTER)
(strcasecmp(cups->header.MediaClass,
"PwgRaster") == 0 ?
+#if defined(CUPS_RASTER_HAVE_APPLERASTER)
+ (!strcmp(cups->dname, "appleraster") ||
+ !strcmp(cups->dname, "urf") ?
+ CUPS_RASTER_WRITE_APPLE :
+ CUPS_RASTER_WRITE_PWG) :
+#else
CUPS_RASTER_WRITE_PWG :
+#endif
(cups->cupsRasterVersion == 3 ?
CUPS_RASTER_WRITE :
CUPS_RASTER_WRITE_COMPRESSED)))) ==
@@ -6080,5 +6099,8 @@ cups_spec_op(gx_device *dev_, int op, void *data, int datasize)
return gx_default_dev_spec_op(dev_, op, data, datasize);
}
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
/*
*/