mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 14:06:36 +00:00
improve support for systems that need unistd.h to get STDOUT_FILENO.
Patch contributed by Bjorn Reese! llvm-svn: 55179
This commit is contained in:
parent
00aced70f5
commit
39ea1a575a
@ -12,10 +12,15 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Config/config.h"
|
||||
#include <ostream>
|
||||
using namespace llvm;
|
||||
|
||||
#include <fcntl.h>
|
||||
#if defined(HAVE_UNISTD_H)
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#if defined(HAVE_FCNTL_H)
|
||||
# include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include <io.h>
|
||||
@ -30,6 +35,9 @@ using namespace llvm;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
|
||||
// An out of line virtual method to provide a home for the class vtable.
|
||||
void raw_ostream::handle() {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user