[Pcsclite-cvs-commit] r5112 - /trunk/PCSC/src/ifdwrapper.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Aug 5 07:42:17 UTC 2010


Author: rousseau
Date: Thu Aug  5 07:42:11 2010
New Revision: 5112

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5112
Log:
Check that either IFDHANDLERv1, IFDHANDLERv2 or IFDHANDLERv3 is
defined if PCSCLITE_STATIC_DRIVER is used

Modified:
    trunk/PCSC/src/ifdwrapper.c

Modified: trunk/PCSC/src/ifdwrapper.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/ifdwrapper.c?rev=5112&op=diff
==============================================================================
--- trunk/PCSC/src/ifdwrapper.c (original)
+++ trunk/PCSC/src/ifdwrapper.c Thu Aug  5 07:42:11 2010
@@ -31,6 +31,14 @@
 #include "dyn_generic.h"
 #include "sys_generic.h"
 #include "utils.h"
+
+#ifdef PCSCLITE_STATIC_DRIVER
+/* check that either IFDHANDLERv1, IFDHANDLERv2 or IFDHANDLERv3 is
+ * defined */
+  #if ! (defined(IFDHANDLERv1) || defined(IFDHANDLERv2) || defined(IFDHANDLERv3))
+  #error IFDHANDLER version not defined
+  #endif
+#endif
 
 /**
  * Set the protocol type selection (PTS).




More information about the Pcsclite-cvs-commit mailing list