]> granicus.if.org Git - clang/commitdiff
replicate a terrible hack to fix a build error on VC++
authorChris Lattner <sabre@nondot.org>
Tue, 23 Nov 2010 20:07:39 +0000 (20:07 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Nov 2010 20:07:39 +0000 (20:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120039 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/FileSystemStatCache.cpp

index 26e9d2f15018cf1a6d1c5ea6544e69a8c0549461..6457414df98da7c7cfff5d333bc3039e1fc7903e 100644 (file)
 #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);