diff options
author | Sam James <sam@gentoo.org> | 2022-03-29 10:27:10 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-04-17 12:53:05 +0100 |
commit | 085bde903b9e684c3c1160e4df912bea9a660997 (patch) | |
tree | c4f5e6e9f2422e869ca5bc0b944520d451001282 /cups | |
parent | Import Ghostscript 9.55 (diff) | |
download | ghostscript-gpl-patches-085bde903b9e684c3c1160e4df912bea9a660997.tar.gz ghostscript-gpl-patches-085bde903b9e684c3c1160e4df912bea9a660997.tar.bz2 ghostscript-gpl-patches-085bde903b9e684c3c1160e4df912bea9a660997.zip |
Import Ghostscript 9.56.0ghostscript-9.56
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'cups')
-rw-r--r-- | cups/gdevcups.c | 22 |
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 /* */ |