]> granicus.if.org Git - clang/commitdiff
Includes direct.h for windows compilation.
authorManuel Klimek <klimek@google.com>
Mon, 7 May 2012 09:45:46 +0000 (09:45 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 7 May 2012 09:45:46 +0000 (09:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156301 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Tooling/Tooling.cpp

index 6ab71e20437c11780e0a77315bd7a6733fff7894..9eb186b86cf70152406377651418b80fcf0febfb 100644 (file)
 #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 {