]> granicus.if.org Git - clang/commitdiff
VC++ doesn't define S_ISDIR
authorChris Lattner <sabre@nondot.org>
Mon, 3 Sep 2007 18:37:14 +0000 (18:37 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Sep 2007 18:37:14 +0000 (18:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41688 91177308-0d34-0410-b5e6-96231b3b80d8

Basic/FileManager.cpp

index 9886e032b436c46c1486b40f4ff46fa1c040f748..0a51eca73fd5d8cc9259cf479fba71c470bb78d3 100644 (file)
@@ -25,6 +25,9 @@ using namespace clang;
 // FIXME: Enhance libsystem to support inode and other fields.
 #include <sys/stat.h>
 
+#if defined(_MSC_VER)
+#define S_ISDIR(s) (_S_IFDIR & s)
+#endif
 
 /// NON_EXISTANT_DIR - A special value distinct from null that is used to
 /// represent a dir name that doesn't exist on the disk.