From: NAKAMURA Takumi Date: Thu, 26 Jan 2012 03:47:18 +0000 (+0000) Subject: Rewrite/FrontendActions.cpp: Tweak to unbreak msvc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0277039e946640646a102bced54cfc0b4d295253;p=clang Rewrite/FrontendActions.cpp: Tweak to unbreak msvc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149041 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Rewrite/FrontendActions.cpp b/lib/Rewrite/FrontendActions.cpp index 66affb080c..b726d76041 100644 --- a/lib/Rewrite/FrontendActions.cpp +++ b/lib/Rewrite/FrontendActions.cpp @@ -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 +#else +#include +#endif using namespace clang;