diff options
author | Manuel Klimek <klimek@google.com> | 2012-05-07 09:45:46 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2012-05-07 09:45:46 +0000 |
commit | 3b6e319c05a3f9858cbc1ceb68fd1b1895b6d2dc (patch) | |
tree | 271cfc77751e7a8b53f24804d4274fb2543cf126 | |
parent | 00f3c4f499cc27c88005176226bb424f6db4a31b (diff) |
Includes direct.h for windows compilation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156301 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Tooling/Tooling.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Tooling/Tooling.cpp b/lib/Tooling/Tooling.cpp index 6ab71e2043..9eb186b86c 100644 --- a/lib/Tooling/Tooling.cpp +++ b/lib/Tooling/Tooling.cpp @@ -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 { |