aboutsummaryrefslogtreecommitdiff
path: root/include/Config/sys/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Config/sys/stat.h')
-rw-r--r--include/Config/sys/stat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Config/sys/stat.h b/include/Config/sys/stat.h
index 9c10260c14..9669bcf927 100644
--- a/include/Config/sys/stat.h
+++ b/include/Config/sys/stat.h
@@ -21,5 +21,9 @@
#include <sys/stat.h>
#endif
+#if defined(_MSC_VER)
+#define S_ISREG(X) ((X) & _S_IFREG)
+#endif
+
#endif