Fix clangd unittest _WIN32 ifdef
authorReid Kleckner <rnk@google.com>
Mon, 1 Apr 2019 21:16:17 +0000 (21:16 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 1 Apr 2019 21:16:17 +0000 (21:16 +0000)
WIN32 is not defined, _WIN32 is, use that instead.

llvm-svn: 357429

clang-tools-extra/unittests/clangd/JSONTransportTests.cpp

index 0498c81..3f71a10 100644 (file)
@@ -17,8 +17,8 @@ namespace {
 
 // No fmemopen on windows or on versions of MacOS X earlier than 10.13, so we
 // can't easily run this test.
-#if !(defined(WIN32) || (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) &&           \
-                         __MAC_OS_X_VERSION_MIN_REQUIRED < 101300))
+#if !(defined(_WIN32) || (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) &&          \
+                          __MAC_OS_X_VERSION_MIN_REQUIRED < 101300))
 
 // Fixture takes care of managing the input/output buffers for the transport.
 class JSONTransportTest : public ::testing::Test {