summaryrefslogtreecommitdiffstats
path: root/clang/Basic/FileManager.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-09-03 18:37:14 +0000
committerChris Lattner <sabre@nondot.org>2007-09-03 18:37:14 +0000
commitff3fa8b6247b535b8de16e0846dad4b3f521f823 (patch)
tree48a9db94bcf4b0877ebe8e674136055c93e4e108 /clang/Basic/FileManager.cpp
parent1463cca1cc7fadcac4dd391b8e2ecf9ba8877f77 (diff)
downloadbcm5719-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.cpp3
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.
OpenPOWER on IntegriCloud