VC++ doesn't define S_ISDIR
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41688 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Basic/FileManager.cpp b/Basic/FileManager.cpp
index 9886e03..0a51eca 100644
--- a/Basic/FileManager.cpp
+++ b/Basic/FileManager.cpp
@@ -25,6 +25,9 @@
// 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.