From: Chris Lattner Date: Mon, 3 Sep 2007 18:37:14 +0000 (+0000) Subject: VC++ doesn't define S_ISDIR X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8c11c6a7831df37f2f40b34072360b04f6d19a8;p=clang VC++ doesn't define S_ISDIR git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41688 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 +#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.