From 956cece54bd149ebc47fb4c7b07075d7e70c93f5 Mon Sep 17 00:00:00 2001 From: Vincent Sourin Date: Tue, 9 Dec 2014 22:14:06 +0100 Subject: [PATCH] * Correct detection of Mac OS X Yosemite Version --- winpr/libwinpr/smartcard/smartcard_pcsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winpr/libwinpr/smartcard/smartcard_pcsc.c b/winpr/libwinpr/smartcard/smartcard_pcsc.c index 94f510868..f01fa75be 100644 --- a/winpr/libwinpr/smartcard/smartcard_pcsc.c +++ b/winpr/libwinpr/smartcard/smartcard_pcsc.c @@ -1880,7 +1880,7 @@ WINSCARDAPI LONG WINAPI PCSC_SCardStatus_Internal(SCARDHANDLE hCard, /** * 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++; #endif *pMszReaderNames = (LPSTR) calloc(1, pcsc_cchReaderLen);