Commits
Leonardo Brondani Schenkel authored 40d0ce1f398
1 - | diff --git a/src/libopensc/internal-winscard.h b/src/libopensc/internal-winscard.h |
2 - | index 011167ddc..edc315ca2 100644 |
3 - | --- a/src/libopensc/internal-winscard.h |
4 - | +++ b/src/libopensc/internal-winscard.h |
5 - | |
6 - | |
7 - | #endif /* HAVE_SCARD_H */ |
8 - | |
9 - | +#ifndef PCSC_API |
10 - | #if defined(_WIN32) |
11 - | #define PCSC_API WINAPI |
12 - | #elif defined(USE_CYGWIN) |
13 - | |
14 - | #else |
15 - | #define PCSC_API |
16 - | #endif |
17 - | +#endif |
18 - | + |
19 - | +#ifdef __APPLE__ |
20 - | +#define extern |
21 - | +#define __attribute__(a) |
22 - | +#endif |
23 - | |
24 - | typedef LONG (PCSC_API *SCardEstablishContext_t)(DWORD dwScope, LPCVOID pvReserved1, |
25 - | LPCVOID pvReserved2, LPSCARDCONTEXT phContext); |
26 - | |
27 - | typedef LONG (PCSC_API *SCardGetAttrib_t)(SCARDHANDLE hCard, DWORD dwAttrId,\ |
28 - | LPBYTE pbAttr, LPDWORD pcbAttrLen); |
29 - | |
30 - | +#ifdef __APPLE__ |
31 - | +#undef extern |
32 - | +#undef __attribute__ |
33 - | +#endif |
34 - | + |
35 - | /* Copied from pcsc-lite reader.h */ |
36 - | |
37 - | #ifndef SCARD_CTL_CODE |