Correctly handle PCSC header files on Mac OS X
Fixes Issue #195
Ludovic Rousseau
11 years ago
40 | 40 | #include "nfc-internal.h" |
41 | 41 | |
42 | 42 | // Bus |
43 | #ifdef __APPLE__ | |
44 | #include <PCSC/winscard.h> | |
45 | #include <PCSC/wintypes.h> | |
46 | #else | |
43 | 47 | #include <winscard.h> |
48 | #endif | |
44 | 49 | |
45 | 50 | #define ACR122_PCSC_DRIVER_NAME "acr122_pcsc" |
46 | 51 | |
47 | 52 | #if defined (_WIN32) |
48 | 53 | # define IOCTL_CCID_ESCAPE_SCARD_CTL_CODE SCARD_CTL_CODE(3500) |
49 | 54 | #elif defined(__APPLE__) |
50 | # include <wintypes.h> | |
51 | 55 | # define IOCTL_CCID_ESCAPE_SCARD_CTL_CODE (((0x31) << 16) | ((3500) << 2)) |
52 | 56 | #elif defined (__FreeBSD__) || defined (__OpenBSD__) |
53 | 57 | # define IOCTL_CCID_ESCAPE_SCARD_CTL_CODE (((0x31) << 16) | ((3500) << 2)) |