Alexandre Julliard : winspool.drv: Make cupsGetPPD optional to work around deprecation warning.
Alexandre Julliard
julliard at winehq.org
Fri Dec 14 11:57:13 CST 2018
Module: wine
Branch: master
Commit: d4bc97c5546f446a241c1e18bd4d3cc9d9a47cb6
URL: https://source.winehq.org/git/wine.git/?a=commit;h=d4bc97c5546f446a241c1e18bd4d3cc9d9a47cb6
Author: Alexandre Julliard <julliard at 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 at 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 e91138d..bfa63f9 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);
More information about the wine-cvs
mailing list