mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
Get raw_ostream.cpp to compile on MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54879 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ee2aa85f44
commit
b68dc369e0
@ -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…
x
Reference in New Issue
Block a user