aboutsummaryrefslogtreecommitdiff
path: root/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorHartmut Kaiser <hartmut.kaiser@gmail.com>2007-09-12 15:39:04 +0000
committerHartmut Kaiser <hartmut.kaiser@gmail.com>2007-09-12 15:39:04 +0000
commit34947250cea7fa89cfd882a4c5cb51412faa0fee (patch)
treee64dfde6d875321c25ccae67a12bef5634d5a26d /Basic/SourceManager.cpp
parentbb204693855fe87a6e4b23dfd053722026dbe87c (diff)
Removed clang solution file for VC++, which didn't work properly because of hard coded paths in the llvm project files.
Changed windows detection to use LLVM pp constant. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41878 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Basic/SourceManager.cpp')
-rw-r--r--Basic/SourceManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Basic/SourceManager.cpp b/Basic/SourceManager.cpp
index 569c864dde..380edc0f93 100644
--- a/Basic/SourceManager.cpp
+++ b/Basic/SourceManager.cpp
@@ -13,6 +13,7 @@
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/FileManager.h"
+#include "llvm/Config/config.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/System/Path.h"
@@ -66,7 +67,7 @@ static const MemoryBuffer *ReadFileFast(const FileEntry *FileEnt) {
FileEnt->getName());
char *BufPtr = const_cast<char*>(SB->getBufferStart());
-#if defined(_WIN32) || defined(_WIN64)
+#if defined(LLVM_ON_WIN32)
int FD = ::open(FileEnt->getName(), O_RDONLY|O_BINARY);
#else
int FD = ::open(FileEnt->getName(), O_RDONLY);