diff options
author | Chris Lattner <sabre@nondot.org> | 2007-09-03 18:37:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-09-03 18:37:14 +0000 |
commit | a8c11c6a7831df37f2f40b34072360b04f6d19a8 (patch) | |
tree | 685e6ede592d630c4afc1154437cfc83e1daae8b /Basic/FileManager.cpp | |
parent | 0e85a2761ace912c66663d779dd230f88cf77fe0 (diff) |
VC++ doesn't define S_ISDIR
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Basic/FileManager.cpp')
-rw-r--r-- | Basic/FileManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Basic/FileManager.cpp b/Basic/FileManager.cpp index 9886e032b4..0a51eca73f 100644 --- a/Basic/FileManager.cpp +++ b/Basic/FileManager.cpp @@ -25,6 +25,9 @@ using namespace clang; // FIXME: Enhance libsystem to support inode and other fields. #include <sys/stat.h> +#if defined(_MSC_VER) +#define S_ISDIR(s) (_S_IFDIR & s) +#endif /// NON_EXISTANT_DIR - A special value distinct from null that is used to /// represent a dir name that doesn't exist on the disk. |