parent
3737481262
commit
782b72e29f
2 changed files with 6 additions and 2 deletions
|
@ -41,14 +41,18 @@
|
|||
#include "nfc-internal.h"
|
||||
|
||||
// Bus
|
||||
#ifdef __APPLE__
|
||||
#include <PCSC/winscard.h>
|
||||
#include <PCSC/wintypes.h>
|
||||
#else
|
||||
#include <winscard.h>
|
||||
#endif
|
||||
|
||||
#define ACR122_PCSC_DRIVER_NAME "acr122_pcsc"
|
||||
|
||||
#if defined (_WIN32)
|
||||
# define IOCTL_CCID_ESCAPE_SCARD_CTL_CODE SCARD_CTL_CODE(3500)
|
||||
#elif defined(__APPLE__)
|
||||
# include <wintypes.h>
|
||||
# define IOCTL_CCID_ESCAPE_SCARD_CTL_CODE (((0x31) << 16) | ((3500) << 2))
|
||||
#elif defined (__FreeBSD__) || defined (__OpenBSD__)
|
||||
# define IOCTL_CCID_ESCAPE_SCARD_CTL_CODE (((0x31) << 16) | ((3500) << 2))
|
||||
|
|
|
@ -17,7 +17,7 @@ AC_DEFUN([LIBNFC_CHECK_PCSC],
|
|||
if test x"$HAVE_PCSC" = "x0" ; then
|
||||
AC_MSG_CHECKING(for PC/SC)
|
||||
libpcsclite_LIBS="-Wl,-framework,PCSC"
|
||||
libpcsclite_CFLAGS="-I/System/Library/Frameworks/PCSC.framework/Headers"
|
||||
libpcsclite_CFLAGS=""
|
||||
HAVE_PCSC=1
|
||||
AC_MSG_RESULT(yes: darwin PC/SC framework)
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue