define S_ISREG if not already defined

* required for VC80 with Microsoft SDK 7.1
This commit is contained in:
Andrei Diaconu 2013-07-09 18:37:58 +03:00
parent 445b4e9f23
commit f6eeb11894

View File

@ -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 */