llvm.org GIT mirror llvm / b68dc36
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 Argyrios Kyrtzidis 11 years ago
1 changed file(s) with 11 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1414 #include
1515 using namespace llvm;
1616
17 #if !defined(_MSC_VER)
1817 #include
19 #else
18
19 #if defined(_MSC_VER)
2020 #include
21 #define open(x,y,z) _open(x,y)
22 #define write(fd, start, size) _write(fd, start, size)
23 #define close(fd) _close(fd)
21 #ifndef STDIN_FILENO
22 # define STDIN_FILENO 0
23 #endif
24 #ifndef STDOUT_FILENO
25 # define STDOUT_FILENO 1
26 #endif
27 #ifndef STDERR_FILENO
28 # define STDERR_FILENO 2
29 #endif
2430 #endif
2531
2632 // An out of line virtual method to provide a home for the class vtable.