From 16f04179e269b58ca811e1e4073e9546096a3603 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sat, 2 Sep 2017 04:00:30 +1000 Subject: Windows doesn't have S_ISDIR --- src/openssl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openssl.c b/src/openssl.c index 10cb1f1..726cba3 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -493,6 +493,10 @@ #define MIN(a, b) (((a) < (b))? (a) : (b)) #ifdef _WIN32 +#if !defined(S_ISDIR) && defined(_S_IFDIR) && defined(_S_IFDIR) +#define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR) +#endif + #define stricmp(a, b) _stricmp((a), (b)) #else #include /* strcasecmp(3) */ -- cgit v1.2.3-59-g8ed1b