[Pcsclite-cvs-commit] r6200 - /trunk/PCSC/src/spy/libpcscspy.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Jan 24 15:19:41 UTC 2012


Author: rousseau
Date: Tue Jan 24 15:19:40 2012
New Revision: 6200

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6200
Log:
Mac OS X uses SCardControl132 instead of SCardControl

On Mac OS X SCardControl() is used for the old version of the API
(without the dwControlCode) and SCardControl132() for the new API.

>From /System/Library/Frameworks/PCSC.framework/Headers/winscard.h 
/*
    To support the newer version of SCardControl, we define it
    as follows. The old version number was 1.1.2, the new call
    appears in 1.3.2 of pcsc-lite (or perhaps earlier).
*/

#if !defined(USE_SCARD_CONTROL_112)
#define SCardControl SCardControl132
#endif /* USE_SCARD_CONTROL_112 */

Modified:
    trunk/PCSC/src/spy/libpcscspy.c

Modified: trunk/PCSC/src/spy/libpcscspy.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/spy/libpcscspy.c?rev=6200&op=diff
==============================================================================
--- trunk/PCSC/src/spy/libpcscspy.c (original)
+++ trunk/PCSC/src/spy/libpcscspy.c Tue Jan 24 15:19:40 2012
@@ -33,6 +33,10 @@
 #include <winscard.h>
 
 #define DEBUG
+
+#ifdef __APPLE__
+#define SCardControl SCardControl132
+#endif
 
 /* function prototypes */
 




More information about the Pcsclite-cvs-commit mailing list