From aca3a9f03f5cd20fa063ce2391f44199aae82e48 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Sat, 20 Oct 2018 17:35:50 +0000 Subject: [PATCH] Check that __MAC_OS_X_VERSION_MIN_REQUIRED is defined before checking whether it is too old. llvm-svn: 344856 --- clang-tools-extra/unittests/clangd/JSONTransportTests.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clang-tools-extra/unittests/clangd/JSONTransportTests.cpp b/clang-tools-extra/unittests/clangd/JSONTransportTests.cpp index 464fe98..bc5a967 100644 --- a/clang-tools-extra/unittests/clangd/JSONTransportTests.cpp +++ b/clang-tools-extra/unittests/clangd/JSONTransportTests.cpp @@ -19,7 +19,9 @@ 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) || __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 { -- 2.7.4