]> granicus.if.org Git - clang/commitdiff
Rewrite/FrontendActions.cpp: Tweak to unbreak msvc.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 26 Jan 2012 03:47:18 +0000 (03:47 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 26 Jan 2012 03:47:18 +0000 (03:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149041 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/FrontendActions.cpp

index 66affb080c5c142ef1cd3feb61623544df653dfa..b726d7604138fce4b92b2e0eb06275859ff79b68 100644 (file)
 #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;