replicate a terrible hack to fix a build error on VC++

llvm-svn: 120039
This commit is contained in:
Chris Lattner 2010-11-23 20:07:39 +00:00
parent 8f0583daa2
commit ea61b32c4a
1 changed files with 4 additions and 0 deletions

View File

@ -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);