[cfe-commits] r149041 - /cfe/trunk/lib/Rewrite/FrontendActions.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Wed Jan 25 19:47:18 PST 2012
Author: chapuni
Date: Wed Jan 25 21:47:18 2012
New Revision: 149041
URL: http://llvm.org/viewvc/llvm-project?rev=149041&view=rev
Log:
Rewrite/FrontendActions.cpp: Tweak to unbreak msvc.
Modified:
cfe/trunk/lib/Rewrite/FrontendActions.cpp
Modified: cfe/trunk/lib/Rewrite/FrontendActions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/FrontendActions.cpp?rev=149041&r1=149040&r2=149041&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/FrontendActions.cpp (original)
+++ cfe/trunk/lib/Rewrite/FrontendActions.cpp Wed Jan 25 21:47:18 2012
@@ -23,7 +23,13 @@
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/FileSystem.h"
+
+// FIXME: This is terrible, we need this for ::close.
+#if !defined(_MSC_VER)
#include <unistd.h>
+#else
+#include <io.h>
+#endif
using namespace clang;
More information about the cfe-commits
mailing list