mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 14:06:36 +00:00
Get raw_ostream.cpp to compile on MSVC.
llvm-svn: 54879
This commit is contained in:
parent
a3c27d36bc
commit
5c264cf5c7
@ -15,13 +15,19 @@
|
||||
#include <ostream>
|
||||
using namespace llvm;
|
||||
|
||||
#if !defined(_MSC_VER)
|
||||
#include <fcntl.h>
|
||||
#else
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include <io.h>
|
||||
#define open(x,y,z) _open(x,y)
|
||||
#define write(fd, start, size) _write(fd, start, size)
|
||||
#define close(fd) _close(fd)
|
||||
#ifndef STDIN_FILENO
|
||||
# define STDIN_FILENO 0
|
||||
#endif
|
||||
#ifndef STDOUT_FILENO
|
||||
# define STDOUT_FILENO 1
|
||||
#endif
|
||||
#ifndef STDERR_FILENO
|
||||
# define STDERR_FILENO 2
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// An out of line virtual method to provide a home for the class vtable.
|
||||
|
Loading…
Reference in New Issue
Block a user