Skip to content

Commit 0dfeee7

Browse files
committed
SourceKit: use _WIN32 instead of LLVM_ON_WIN32
`_WIN32` indicates if we are targeting Windows or not. Directly use that macro rather than `LLVM_ON_WIN32` used by LLVM. This makes it easier to port the code.
1 parent a33e608 commit 0dfeee7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/SourceKit/tools/sourcekitd/bin/InProc/sourcekitdInProc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// FIXME: Portability ?
2222
#include <Block.h>
2323

24-
#ifdef LLVM_ON_WIN32
24+
#if defined(_WIN32)
2525
#define WIN32_LEAN_AND_MEAN
2626
#define NOMINMAX
2727
#include <windows.h>
@@ -81,7 +81,7 @@ UIdent sourcekitd::UIdentFromSKDUID(sourcekitd_uid_t uid) {
8181

8282
std::string sourcekitd::getRuntimeLibPath() {
8383
// FIXME: Move to an LLVM API. Note that libclang does the same thing.
84-
#ifdef LLVM_ON_WIN32
84+
#if defined(_WIN32)
8585
#error Not implemented
8686
#else
8787
// This silly cast below avoids a C++ warning.

0 commit comments

Comments
 (0)