[cfe-commits] r120039 - /cfe/trunk/lib/Basic/FileSystemStatCache.cpp

Chris Lattner sabre at nondot.org
Tue Nov 23 12:07:39 PST 2010


Author: lattner
Date: Tue Nov 23 14:07:39 2010
New Revision: 120039

URL: http://llvm.org/viewvc/llvm-project?rev=120039&view=rev
Log:
replicate a terrible hack to fix a build error on VC++

Modified:
    cfe/trunk/lib/Basic/FileSystemStatCache.cpp

Modified: cfe/trunk/lib/Basic/FileSystemStatCache.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/FileSystemStatCache.cpp?rev=120039&r1=120038&r2=120039&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/FileSystemStatCache.cpp (original)
+++ cfe/trunk/lib/Basic/FileSystemStatCache.cpp Tue Nov 23 14:07:39 2010
@@ -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);





More information about the cfe-commits mailing list