added check for window's api's min macro

This commit is contained in:
John Safranek 2015-05-14 11:40:23 -07:00
parent dcd6602293
commit 660e0b868b

View File

@ -193,6 +193,12 @@ WOLFSSL_LOCAL int UnLockMutex(wolfSSL_Mutex*);
#endif /* NO_FILESYSTEM */
/* Windows API defines its own min() macro. */
#if defined(USE_WINDOWS_API) && defined(min)
#define WOLFSSL_HAVE_MIN
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif