Commit 0869c7b5 authored by Jack Andersen's avatar Jack Andersen

This had better fix S_ISREG on Windows

parent 7fb2e91f
......@@ -320,6 +320,14 @@ static inline int Rename(const SystemChar* oldpath, const SystemChar* newpath)
#endif
}
#if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif
#if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR)
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
static inline int Stat(const SystemChar* path, Sstat* statOut)
{
#if CARD_UCS2
......
......@@ -4,7 +4,6 @@
#include <string.h>
#include <algorithm>
#include <memory>
#include <sys/stat.h>
namespace kabufuda
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment