diff --git a/moo/mooutils/mooutils-fs.h b/moo/mooutils/mooutils-fs.h index 40a16852..37f1d312 100644 --- a/moo/mooutils/mooutils-fs.h +++ b/moo/mooutils/mooutils-fs.h @@ -17,11 +17,13 @@ #include /* MSVC */ -#if defined(MSVC) && !defined(__GNUC__) -#include +#if defined(WIN32) && !defined(__GNUC__) +#include +#ifndef S_ISREG #define S_ISREG(m) (((m) & (_S_IFMT)) == (_S_IFREG)) #define S_ISDIR(m) (((m) & (_S_IFMT)) == (_S_IFDIR)) #endif +#endif G_BEGIN_DECLS