Codebase list libfreefare / 782b72e
Correctly handle PCSC header files on Mac OS X Fixes Issue #195 Ludovic Rousseau 11 years ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4040 #include "nfc-internal.h"
4141
4242 // Bus
43 #ifdef __APPLE__
44 #include <PCSC/winscard.h>
45 #include <PCSC/wintypes.h>
46 #else
4347 #include <winscard.h>
48 #endif
4449
4550 #define ACR122_PCSC_DRIVER_NAME "acr122_pcsc"
4651
4752 #if defined (_WIN32)
4853 # define IOCTL_CCID_ESCAPE_SCARD_CTL_CODE SCARD_CTL_CODE(3500)
4954 #elif defined(__APPLE__)
50 # include <wintypes.h>
5155 # define IOCTL_CCID_ESCAPE_SCARD_CTL_CODE (((0x31) << 16) | ((3500) << 2))
5256 #elif defined (__FreeBSD__) || defined (__OpenBSD__)
5357 # define IOCTL_CCID_ESCAPE_SCARD_CTL_CODE (((0x31) << 16) | ((3500) << 2))
1616 if test x"$HAVE_PCSC" = "x0" ; then
1717 AC_MSG_CHECKING(for PC/SC)
1818 libpcsclite_LIBS="-Wl,-framework,PCSC"
19 libpcsclite_CFLAGS="-I/System/Library/Frameworks/PCSC.framework/Headers"
19 libpcsclite_CFLAGS=""
2020 HAVE_PCSC=1
2121 AC_MSG_RESULT(yes: darwin PC/SC framework)
2222 fi