Re: Which version onwards pcsc-lite support the Part10 features

Anand Renju <[email protected]>
Newsgroups gmane.comp.lib.muscle
Message-ID <CAOa=gD+Y0KPe4n-mpJ13kkbNNRWjmJ+44OwG5MJMabHCHuOczQ@mail.gmail.com>
ok. That's another way of doing it. If we had something like #define
PCSCLITE_VERSION_NUMBER 0x010808 for verion 1.8.8; it would have been
better to go for a conditional compilation based on version as follows.

#if  PCSCLITE_VERSION_NUMBER >= 0x010808
.....
.....
#endif

Thanks for your suggestion.


On Mon, Aug 12, 2013 at 1:45 PM, Ludovic Rousseau <
[email protected]> wrote:

> 2013/8/12 Anand Renju <[email protected]>:
> > Hi Ludovic,
> >
> > I would like to know which is the initial version of pcsc-lite having the
> > reader.h header with following entries
> >
> > #define FEATURE_VERIFY_PIN_DIRECT
> > #define FEATURE_MODIFY_PIN_DIRECT
> >
> > Basically i want to use PCSCLITE_VERSION_NUMBER macro to include the
> Part10
> > feature code in my application; also i don't want to break the code when
> i
> > build it with older pcsc-lite versions which were not having the
> > PCSCLITE_VERSION_NUMBER
>
> Why don't you just do:
>
> #ifndef FEATURE_VERIFY_PIN_DIRECT
> #define FEATURE_VERIFY_PIN_DIRECT 0x06
> /* Add other defines */
> #endif
>
> Bye
>
> --
>  Dr. Ludovic Rousseau
>
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com
>

_______________________________________________
Muscle mailing list
[email protected]
http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.