[cfe-commits] r146647 - in /cfe/trunk: lib/Frontend/CompilerInstance.cpp tools/libclang/CIndex.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Wed Dec 14 21:53:37 PST 2011
Author: akirtzidis
Date: Wed Dec 14 23:53:37 2011
New Revision: 146647
URL: http://llvm.org/viewvc/llvm-project?rev=146647&view=rev
Log:
Revert r146646 that was a mistake, and make the intended change in the right file.
Log:
[libclang] Try to unbreak mingw build.
Modified:
cfe/trunk/lib/Frontend/CompilerInstance.cpp
cfe/trunk/tools/libclang/CIndex.cpp
Modified: cfe/trunk/lib/Frontend/CompilerInstance.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInstance.cpp?rev=146647&r1=146646&r2=146647&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInstance.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInstance.cpp Wed Dec 14 23:53:37 2011
@@ -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>
Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=146647&r1=146646&r2=146647&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Wed Dec 14 23:53:37 2011
@@ -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;
More information about the cfe-commits
mailing list