[cfe-commits] r41688 - /cfe/trunk/Basic/FileManager.cpp

Chris Lattner sabre at nondot.org
Mon Sep 3 11:37:15 PDT 2007


Author: lattner
Date: Mon Sep  3 13:37:14 2007
New Revision: 41688

URL: http://llvm.org/viewvc/llvm-project?rev=41688&view=rev
Log:
VC++ doesn't define S_ISDIR

Modified:
    cfe/trunk/Basic/FileManager.cpp

Modified: cfe/trunk/Basic/FileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Basic/FileManager.cpp?rev=41688&r1=41687&r2=41688&view=diff

==============================================================================
--- cfe/trunk/Basic/FileManager.cpp (original)
+++ cfe/trunk/Basic/FileManager.cpp Mon Sep  3 13:37:14 2007
@@ -25,6 +25,9 @@
 // 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.





More information about the cfe-commits mailing list