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 | ff3fa8b6247b535b8de16e0846dad4b3f521f823 (patch) | |
| tree | 48a9db94bcf4b0877ebe8e674136055c93e4e108 /clang/Basic/FileManager.cpp | |
| parent | 1463cca1cc7fadcac4dd391b8e2ecf9ba8877f77 (diff) | |
| download | bcm5719-llvm-ff3fa8b6247b535b8de16e0846dad4b3f521f823.tar.gz bcm5719-llvm-ff3fa8b6247b535b8de16e0846dad4b3f521f823.zip | |
VC++ doesn't define S_ISDIR
llvm-svn: 41688
Diffstat (limited to 'clang/Basic/FileManager.cpp')
| -rw-r--r-- | clang/Basic/FileManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/Basic/FileManager.cpp b/clang/Basic/FileManager.cpp index 9886e032b43..0a51eca73fd 100644 --- a/clang/Basic/FileManager.cpp +++ b/clang/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. |

