2013/8/13 Anand Renju <[email protected]>: > 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
Why would that be better? You want to know if FEATURE_VERIFY_PIN_DIRECT is available. So just check for that. Using PCSCLITE_VERSION_NUMBER you add an indirection and then potential problems. > Thanks for your suggestion. You are welcome. Bye > 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 -- Dr. Ludovic Rousseau _______________________________________________ Muscle mailing list [email protected] http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com
