Merge pull request #2 from andrei-diaconu/master

I had to define S_ISREG in order to compile on my machine
This commit is contained in:
Troy D. Hanson 2013-07-09 19:57:39 -07:00
commit 0cf16b3e8a

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