Module: wine Branch: oldstable Commit: 2cd5ada63ee42f6f726d6c80e5475ec029dc4ffb URL: https://source.winehq.org/git/wine.git/?a=commit;h=2cd5ada63ee42f6f726d6c80e...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Dec 14 11:21:00 2018 +0100
winspool.drv: Make cupsGetPPD optional to work around deprecation warning.
Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit d4bc97c5546f446a241c1e18bd4d3cc9d9a47cb6) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/winspool.drv/info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index bbdcaac..2a25630 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -786,11 +786,11 @@ static void *cupshandle; DO_FUNC(cupsFreeOptions); \ DO_FUNC(cupsGetDests); \ DO_FUNC(cupsGetOption); \ - DO_FUNC(cupsGetPPD); \ DO_FUNC(cupsParseOptions); \ DO_FUNC(cupsPrintFile) #define CUPS_OPT_FUNCS \ DO_FUNC(cupsGetNamedDest); \ + DO_FUNC(cupsGetPPD); \ DO_FUNC(cupsGetPPD3); \ DO_FUNC(cupsLastErrorString)
@@ -798,6 +798,7 @@ static void *cupshandle; CUPS_FUNCS; #undef DO_FUNC static cups_dest_t * (*pcupsGetNamedDest)(http_t *, const char *, const char *); +static const char * (*pcupsGetPPD)(const char *); static http_status_t (*pcupsGetPPD3)(http_t *, const char *, time_t *, char *, size_t); static const char * (*pcupsLastErrorString)(void);