mirror of
https://github.com/AxioDL/kabufuda.git
synced 2025-05-13 10:51:20 +00:00
This had better fix S_ISREG on Windows
This commit is contained in:
parent
7fb2e91f81
commit
0869c7b5b5
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user