Check that __MAC_OS_X_VERSION_MIN_REQUIRED is defined before checking

whether it is too old.

llvm-svn: 344856
This commit is contained in:
Akira Hatanaka 2018-10-20 17:35:50 +00:00
parent 0522b0da31
commit aca3a9f03f
1 changed files with 3 additions and 1 deletions

View File

@ -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 {