Be a bit more efficient when processing the active and inactive
[oota-llvm.git] / include / Config / sys / stat.h
index 9c10260c14c1460ccaa41ed67894ba91aa40c430..9669bcf927b4a2e52256b0b9bda8523a053c4222 100644 (file)
@@ -21,5 +21,9 @@
 #include <sys/stat.h>
 #endif
 
+#if defined(_MSC_VER)
+#define S_ISREG(X) ((X) & _S_IFREG)
+#endif
+
 #endif