Be a bit more efficient when processing the active and inactive
[oota-llvm.git] / include / Config / sys / stat.h
index a19fee4222cb67625282f12b00df590c166a938a..9669bcf927b4a2e52256b0b9bda8523a053c4222 100644 (file)
@@ -1,4 +1,4 @@
-/*===-- Config/sys/stat.h - Annotation classes --------------*- ----C++ -*-===//
+/*===-- Config/sys/stat.h -----------------------------------*- ----C++ -*-===//
  * 
  *                     The LLVM Compiler Infrastructure
  *
@@ -21,5 +21,9 @@
 #include <sys/stat.h>
 #endif
 
+#if defined(_MSC_VER)
+#define S_ISREG(X) ((X) & _S_IFREG)
+#endif
+
 #endif