aboutsummaryrefslogtreecommitdiff
path: root/Basic/FileManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Basic/FileManager.cpp')
-rw-r--r--Basic/FileManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Basic/FileManager.cpp b/Basic/FileManager.cpp
index 9886e032b4..0a51eca73f 100644
--- a/Basic/FileManager.cpp
+++ b/Basic/FileManager.cpp
@@ -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.