diff options
| -rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 3 | ||||
| -rw-r--r-- | clang/tools/libclang/CIndex.cpp | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 8b6251e6e78..84df382e273 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/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/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index bccd927ca2c..386921c49e8 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/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; |

