diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-03-12 16:07:46 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-03-12 16:07:46 +0000 |
commit | 501eadb42919f8312a55d78455a44b39e16762ed (patch) | |
tree | 14b5f66134c9d25db988268b6d8a3f663a16ea86 /clang/lib/Tooling/Tooling.cpp | |
parent | 3e699d419eebdd287e34c22d8abffa237fc1bf33 (diff) | |
download | bcm5719-llvm-501eadb42919f8312a55d78455a44b39e16762ed.tar.gz bcm5719-llvm-501eadb42919f8312a55d78455a44b39e16762ed.zip |
Check for LLVM_ON_WIN32 instead of _WIN32.
This is a follow-up to r203624 to address Anton's comment.
llvm-svn: 203668
Diffstat (limited to 'clang/lib/Tooling/Tooling.cpp')
-rw-r--r-- | clang/lib/Tooling/Tooling.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Tooling/Tooling.cpp b/clang/lib/Tooling/Tooling.cpp index c720bf4e851..8ad2675ee9f 100644 --- a/clang/lib/Tooling/Tooling.cpp +++ b/clang/lib/Tooling/Tooling.cpp @@ -24,6 +24,7 @@ #include "clang/Tooling/ArgumentsAdjusters.h" #include "clang/Tooling/CompilationDatabase.h" #include "llvm/ADT/STLExtras.h" +#include "llvm/Config/config.h" #include "llvm/Option/Option.h" #include "llvm/Support/Debug.h" #include "llvm/Support/FileSystem.h" @@ -31,7 +32,7 @@ #include "llvm/Support/raw_ostream.h" // For chdir, see the comment in ClangTool::run for more information. -#ifdef _WIN32 +#ifdef LLVM_ON_WIN32 # include <direct.h> #else # include <unistd.h> |