From 75e6ac534eadc59c4cc6cdb471a1901b59f0ad24 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 18 Dec 2013 10:58:10 -0800 Subject: [PATCH] Force Cygwin to use function tolower() rather than macro version --- cyassl/ctaocrypt/types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cyassl/ctaocrypt/types.h b/cyassl/ctaocrypt/types.h index f873592e3..c5075c51c 100644 --- a/cyassl/ctaocrypt/types.h +++ b/cyassl/ctaocrypt/types.h @@ -217,6 +217,11 @@ enum { #define XISALPHA(c) isalpha((c)) #endif /* needed by CyaSSL_check_domain_name() */ + #ifdef __CYGWIN__ + /* Cygwin uses a macro version of tolower() by default, use the + * function version. */ + #undef tolower + #endif #define XTOLOWER(c) tolower((c)) #endif