[windows][core] Define S_ISDIR when not defined

This commit is contained in:
Thiago Marcos P. Santos
2017-12-15 15:10:26 +02:00
parent fef095f785
commit 035418336e

View File

@@ -9,7 +9,10 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#if defined(_WINDOWS) && !defined(S_ISDIR)
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
namespace {