diff options
author | Cedric Venet <cedric.venet@laposte.net> | 2009-02-14 16:15:20 +0000 |
---|---|---|
committer | Cedric Venet <cedric.venet@laposte.net> | 2009-02-14 16:15:20 +0000 |
commit | ea684e699ea84e61711e279f5fa7a1b9f3d46bc2 (patch) | |
tree | 32dea78f1f9c230a4997c484d8ba2fc60e7b141b /Driver/CacheTokens.cpp | |
parent | 487cdee2f5bf641af4532fe4af79545997d8f5e3 (diff) |
Fix the build on win32.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/CacheTokens.cpp')
-rw-r--r-- | Driver/CacheTokens.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Driver/CacheTokens.cpp b/Driver/CacheTokens.cpp index 02e9f6cff0..d2921f0152 100644 --- a/Driver/CacheTokens.cpp +++ b/Driver/CacheTokens.cpp @@ -26,6 +26,11 @@ #include "llvm/Support/Compiler.h" #include "llvm/Support/Streams.h" +// FIXME: put this somewhere else? +#ifndef S_ISDIR +#define S_ISDIR(x) (((x)&_S_IFDIR)!=0) +#endif + using namespace clang; typedef uint32_t Offset; |