Re: [cups-devel] How to check for cups version dynamically or statically

Michael Sweet <[email protected]> Wed, 04 Oct 2017 20:03:10 -0400
Newsgroups gmane.comp.printing.cups.devel
Message-ID <[email protected]>
Apologies, the constants are:

    CUPS_VERSION_MAJOR
    CUPS_VERSION_MINOR
    CUPS_VERSION_PATCH

(these are defined in <cups/cups.h>)


> On Oct 4, 2017, at 12:24 PM, sarat12us <[email protected]> wrote:
> 
>> When I use CUPS_MAJOR_VERSION
> Compiler says undeclared 
> 
> Sent from my iPhone
> 
>> On Sep 29, 2017, at 12:15 PM, Mike Sweet <[email protected]> wrote:
>> 
>> The cups/cups.h header defines CUPS_MAJOR_VERSION, CUPS_MINOR_VERSION, and CUPS_PATCH_VERSION for compile time version checks.
>> 
>> Sent from my iPhone
>> 
>>> On Sep 28, 2017, at 2:54 PM, sarat12us <[email protected]> wrote:
>>> 
>>> 
>>> something like #ifdef CUPS_1.6 ELSE #ENDIF
>>> And CentOS version version like #ifdef CENT_OS ELSE #ENDIF
>>> This in C++ code
>>> 
>>> 
>>> _______________________________________________
>>> cups-devel mailing list
>>> [email protected]
>>> https://lists.cups.org/mailman/listinfo/cups-devel
>> _______________________________________________
>> cups-devel mailing list
>> [email protected]
>> https://lists.cups.org/mailman/listinfo/cups-devel
> _______________________________________________
> cups-devel mailing list
> [email protected]
> https://lists.cups.org/mailman/listinfo/cups-devel

_________________________________________________________
Michael Sweet, Senior Printing System Engineer