VC++ doesn't define S_ISDIR

llvm-svn: 41688
This commit is contained in:
Chris Lattner 2007-09-03 18:37:14 +00:00
parent 1463cca1cc
commit ff3fa8b624
1 changed files with 3 additions and 0 deletions

View File

@ -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.