diff options
| author | Akira Hatanaka <ahatanaka@apple.com> | 2018-10-20 17:35:50 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@apple.com> | 2018-10-20 17:35:50 +0000 |
| commit | aca3a9f03f5cd20fa063ce2391f44199aae82e48 (patch) | |
| tree | 1c437460ba784ce49c2fc0a0efaec7d580656054 | |
| parent | 0522b0da3124cd54faebb65d501ab9311d621971 (diff) | |
| download | bcm5719-llvm-aca3a9f03f5cd20fa063ce2391f44199aae82e48.tar.gz bcm5719-llvm-aca3a9f03f5cd20fa063ce2391f44199aae82e48.zip | |
Check that __MAC_OS_X_VERSION_MIN_REQUIRED is defined before checking
whether it is too old.
llvm-svn: 344856
| -rw-r--r-- | clang-tools-extra/unittests/clangd/JSONTransportTests.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang-tools-extra/unittests/clangd/JSONTransportTests.cpp b/clang-tools-extra/unittests/clangd/JSONTransportTests.cpp index 464fe98e322..bc5a96749fa 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 { |

