projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
247faff
)
Fix compilation errors on MSVC. Patch by Argiris Kirtzidis!
author
Bill Wendling
<isanbard@gmail.com>
Tue, 1 Apr 2008 22:09:20 +0000
(22:09 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Tue, 1 Apr 2008 22:09:20 +0000
(22:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49055
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/MemoryBuffer.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/MemoryBuffer.cpp
b/lib/Support/MemoryBuffer.cpp
index 7a60b85b91e5cddbb66037b405950c4071257991..b170ea72670c20831e6e9fc40664e1263cf09609 100644
(file)
--- a/
lib/Support/MemoryBuffer.cpp
+++ b/
lib/Support/MemoryBuffer.cpp
@@
-29,6
+29,7
@@
#include <sys/fcntl.h>
#else
#include <io.h>
+#include <fcntl.h>
#endif
using namespace llvm;
@@
-175,7
+176,7
@@
MemoryBuffer *MemoryBuffer::getFile(const char *Filename, std::string *ErrStr,
int64_t FileSize) {
int OpenFlags = 0;
#ifdef O_BINARY
- Flags |= O_BINARY; // Open input file in binary mode on win32.
+
Open
Flags |= O_BINARY; // Open input file in binary mode on win32.
#endif
int FD = ::open(Filename, O_RDONLY|OpenFlags);
if (FD == -1) {