aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Config/sys/stat.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-04 20:03:06 +0000
committerChris Lattner <sabre@nondot.org>2004-06-04 20:03:06 +0000
commita833fca56c20ee856091bb8216dd1f82477a4bb4 (patch)
tree9354c5417a8565fdf50d510f779dca708b2f41a3 /include/llvm/Config/sys/stat.h
parent44eaf9b354bc7bda04836aa3aede93ffca136bda (diff)
Visual C has something resembling a stat function, but it doesn't provide S_ISREG
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14016 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Config/sys/stat.h')
-rw-r--r--include/llvm/Config/sys/stat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Config/sys/stat.h b/include/llvm/Config/sys/stat.h
index 9c10260c14..9669bcf927 100644
--- a/include/llvm/Config/sys/stat.h
+++ b/include/llvm/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