summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-12-15 05:53:37 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-12-15 05:53:37 +0000
commita0caa29d6f591026362cdfa44a390432e05d7b71 (patch)
tree465acdbc039073a16fe1e3794f27319b9f4497bb
parentd99472f4cdb0a1220f12af9094de25af1daf86aa (diff)
downloadbcm5719-llvm-a0caa29d6f591026362cdfa44a390432e05d7b71.tar.gz
bcm5719-llvm-a0caa29d6f591026362cdfa44a390432e05d7b71.zip
Revert r146646 that was a mistake, and make the intended change in the right file.
Log: [libclang] Try to unbreak mingw build. llvm-svn: 146647
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp3
-rw-r--r--clang/tools/libclang/CIndex.cpp10
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;
OpenPOWER on IntegriCloud