[cfe-commits] r156301 - /cfe/trunk/lib/Tooling/Tooling.cpp
Manuel Klimek
klimek at google.com
Mon May 7 02:45:46 PDT 2012
Author: klimek
Date: Mon May 7 04:45:46 2012
New Revision: 156301
URL: http://llvm.org/viewvc/llvm-project?rev=156301&view=rev
Log:
Includes direct.h for windows compilation.
Modified:
cfe/trunk/lib/Tooling/Tooling.cpp
Modified: cfe/trunk/lib/Tooling/Tooling.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Tooling.cpp?rev=156301&r1=156300&r2=156301&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/Tooling.cpp (original)
+++ cfe/trunk/lib/Tooling/Tooling.cpp Mon May 7 04:45:46 2012
@@ -26,6 +26,11 @@
#include "llvm/Support/Host.h"
#include "llvm/Support/raw_ostream.h"
+#ifdef _WIN32
+// For chdir, see the comment in ClangTool::run for more information.
+# include <direct.h>
+#endif
+
namespace clang {
namespace tooling {
More information about the cfe-commits
mailing list