[cups] how to work around API changes?

Jacob Marble jacobmarble at google.com
Tue Sep 1 11:33:31 PDT 2015


On Mon, Aug 31, 2015 at 4:10 AM, Michael Sweet <msweet at apple.com> wrote:

> The recommended "fix" for code like this is to define the following before
> including any CUPS headers:
>
>     #define _IPP_PRIVATE_STRUCTURES
>

This is working for me.


> As for importing the functions from the newer CUPS releases, that is NOT
> recommended since you'll end up with duplicate symbols when running the
> binary on newer systems, which can lead to unpredictable results when your
> code is in a shared library/loadable module.
>

That's sound advice. Thank you, Michael.

Jacob Marble



More information about the cups mailing list