summaryrefslogtreecommitdiffstats
path: root/clang/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
commitea61b32c4af700d3648f2eef1e1f525c18c63d2e (patch)
tree71a39abd1c2fcfa563f22ae905ceb4222c8efbd3 /clang/lib/Basic/FileSystemStatCache.cpp
parent8f0583daa2864318537a61b12e71c3264c227738 (diff)
downloadbcm5719-llvm-ea61b32c4af700d3648f2eef1e1f525c18c63d2e.tar.gz
bcm5719-llvm-ea61b32c4af700d3648f2eef1e1f525c18c63d2e.zip
replicate a terrible hack to fix a build error on VC++
llvm-svn: 120039
Diffstat (limited to 'clang/lib/Basic/FileSystemStatCache.cpp')
-rw-r--r--clang/lib/Basic/FileSystemStatCache.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Basic/FileSystemStatCache.cpp b/clang/lib/Basic/FileSystemStatCache.cpp
index 26e9d2f1501..6457414df98 100644
--- a/clang/lib/Basic/FileSystemStatCache.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud