From ea61b32c4af700d3648f2eef1e1f525c18c63d2e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 23 Nov 2010 20:07:39 +0000 Subject: replicate a terrible hack to fix a build error on VC++ llvm-svn: 120039 --- clang/lib/Basic/FileSystemStatCache.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/Basic/FileSystemStatCache.cpp') diff --git a/clang/lib/Basic/FileSystemStatCache.cpp b/clang/lib/Basic/FileSystemStatCache.cpp index 26e9d2f..6457414 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); -- cgit v1.1