From f6eeb11894b0e5bbb9c834d311623429e2079762 Mon Sep 17 00:00:00 2001 From: Andrei Diaconu Date: Tue, 9 Jul 2013 18:37:58 +0300 Subject: [PATCH] define S_ISREG if not already defined * required for VC80 with Microsoft SDK 7.1 --- src/tpl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tpl.c b/src/tpl.c index f4395d0..0cc2788 100644 --- a/src/tpl.c +++ b/src/tpl.c @@ -53,6 +53,9 @@ typedef unsigned __int32 uint32_t; typedef unsigned __int64 uint64_t; #endif +#ifndef S_ISREG +#define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) +#endif #if ( defined __CYGWIN__ || defined __MINGW32__ || defined _WIN32 ) #include "win/mman.h" /* mmap */