diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-01-26 03:47:18 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-01-26 03:47:18 +0000 |
commit | 0277039e946640646a102bced54cfc0b4d295253 (patch) | |
tree | 96fe854c57ef1ae6a4b0d810f99a09c4ea1ed887 /lib/Rewrite/FrontendActions.cpp | |
parent | c01dfc18694bb7aa01c12bad3fb710938018728f (diff) |
Rewrite/FrontendActions.cpp: Tweak to unbreak msvc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite/FrontendActions.cpp')
-rw-r--r-- | lib/Rewrite/FrontendActions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 <unistd.h> +#else +#include <io.h> +#endif using namespace clang; |