* Correct detection of Mac OS X Yosemite Version

This commit is contained in:
Vincent Sourin 2014-12-09 22:14:06 +01:00
parent 64ff9ee1b6
commit 956cece54b

View File

@ -1880,7 +1880,7 @@ WINSCARDAPI LONG WINAPI PCSC_SCardStatus_Internal(SCARDHANDLE hCard,
/** /**
* Workaround for SCardStatus Bug in MAC OS X Yosemite * Workaround for SCardStatus Bug in MAC OS X Yosemite
*/ */
#if defined (__APPLE__) && defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED == 1010 #if defined (__APPLE__) && defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED == 101000
pcsc_cchReaderLen++; pcsc_cchReaderLen++;
#endif #endif
*pMszReaderNames = (LPSTR) calloc(1, pcsc_cchReaderLen); *pMszReaderNames = (LPSTR) calloc(1, pcsc_cchReaderLen);