diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-12-15 05:53:37 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-12-15 05:53:37 +0000 |
commit | 53ba95612c023ecbcf142b9aaa90e4082fc1b480 (patch) | |
tree | a5f9082f36ffde9b8e1e39192803b0fbfa36435e | |
parent | f5a684d7742df5b57e70bb4dac327f2ef0333f71 (diff) |
Revert r146646 that was a mistake, and make the intended change in the right file.
Log:
[libclang] Try to unbreak mingw build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146647 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 3 | ||||
-rw-r--r-- | tools/libclang/CIndex.cpp | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index 8b6251e6e7..84df382e27 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -48,12 +48,9 @@ #include <fstream> #include <sys/types.h> #include <sys/stat.h> -#include <cstdlib> #if LLVM_ON_WIN32 #include <windows.h> -#include <io.h> -#include <fcntl.h> #endif #if LLVM_ON_UNIX #include <unistd.h> diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index bccd927ca2..386921c49e 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -46,6 +46,16 @@ #include "llvm/Support/Signals.h" #include "llvm/Support/Threading.h" #include "llvm/Support/Compiler.h" +#include <cstdlib> + +#if LLVM_ON_WIN32 +#include <windows.h> +#include <io.h> +#include <fcntl.h> +#endif +#if LLVM_ON_UNIX +#include <unistd.h> +#endif using namespace clang; using namespace clang::cxcursor; |