[PATCH 1/3] winspool: Install the ppd files into the driver directory.

Alexandre Julliard julliard at winehq.org
Mon Jun 11 14:03:15 CDT 2012


Huw Davies <huw at codeweavers.com> writes:

> @@ -488,18 +638,70 @@ static void *cupshandle;
>      DO_FUNC(cupsGetPPD); \
>      DO_FUNC(cupsParseOptions); \
>      DO_FUNC(cupsPrintFile);
> +#define CUPS_OPT_FUNCS \
> +    DO_FUNC(cupsGetPPD3);
>  
>  #define DO_FUNC(f) static typeof(f) *p##f
>  CUPS_FUNCS;
> +CUPS_OPT_FUNCS;
>  #undef DO_FUNC

This still requires the function to be defined:

gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -D_SPOOL32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -I/usr/local/include/freetype2 -I/usr/local/include  -g -O2  -o info.o info.c
info.c:732: error: 'cupsGetPPD3' undeclared here (not in a function)
info.c:732: warning: type defaults to 'int' in declaration of 'pcupsGetPPD3'
info.c: In function 'cupsGetPPD3_wrapper':
info.c:741: error: called object 'pcupsGetPPD3' is not a function
info.c: In function 'get_cups_ppd':
info.c:771: error: 'CUPS_HTTP_DEFAULT' undeclared (first use in this function)
info.c:771: error: (Each undeclared identifier is reported only once
info.c:771: error: for each function it appears in.)
make[1]: *** [info.o] Error 1

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list