aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/FileSystemStatCache.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-23 20:07:39 +0000
committerChris Lattner <sabre@nondot.org>2010-11-23 20:07:39 +0000
commit72f6130a17742e9c9078b4b60ad8f7ac2c690a3b (patch)
tree9f27bec8e260c2b99eea84be8238a93e6bfbf287 /lib/Basic/FileSystemStatCache.cpp
parentd6f611198089b78e32d3a15fe8bc986204aee1aa (diff)
replicate a terrible hack to fix a build error on VC++
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileSystemStatCache.cpp')
-rw-r--r--lib/Basic/FileSystemStatCache.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Basic/FileSystemStatCache.cpp b/lib/Basic/FileSystemStatCache.cpp
index 26e9d2f150..6457414df9 100644
--- a/lib/Basic/FileSystemStatCache.cpp
+++ b/lib/Basic/FileSystemStatCache.cpp
@@ -15,6 +15,10 @@
#include "llvm/System/Path.h"
using namespace clang;
+#if defined(_MSC_VER)
+#define S_ISDIR(s) (_S_IFDIR & s)
+#endif
+
MemorizeStatCalls::LookupResult
MemorizeStatCalls::getStat(const char *Path, struct stat &StatBuf) {
LookupResult Result = statChained(Path, StatBuf);