[cfe-commits] r167468 - /cfe/trunk/lib/Basic/FileManager.cpp
Daniel Dunbar
daniel at zuster.org
Tue Nov 6 09:08:24 PST 2012
Author: ddunbar
Date: Tue Nov 6 11:08:24 2012
New Revision: 167468
URL: http://llvm.org/viewvc/llvm-project?rev=167468&view=rev
Log:
Basic: Windows doesn't define S_IFIFO.
Modified:
cfe/trunk/lib/Basic/FileManager.cpp
Modified: cfe/trunk/lib/Basic/FileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/FileManager.cpp?rev=167468&r1=167467&r2=167468&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/FileManager.cpp (original)
+++ cfe/trunk/lib/Basic/FileManager.cpp Tue Nov 6 11:08:24 2012
@@ -36,6 +36,9 @@
#include <sys/uio.h>
#else
#include <io.h>
+#ifndef S_ISFIFO
+#define S_ISFIFO(x) (0)
+#endif
#endif
using namespace clang;
@@ -58,7 +61,7 @@
}
bool FileEntry::isNamedPipe() const {
- return FileMode & S_IFIFO;
+ return S_ISFIFO(FileMode);
}
//===----------------------------------------------------------------------===//
More information about the cfe-commits
mailing list